Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

OnRowDblClick

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    OnRowDblClick

    Can anyone give me the correct syntax for OnRowDblClick or point me to an example of OnRowDblClick being used in a script. I have the complete Xbasic manual printed out but was unable to find it except a reference to it on page 71.

    Thanks!

    #2
    RE: OnRowDblClick

    Arthur, you can do a lot of different things with the OnRowDblClick here is an Example of write a record from one child table to another.

    Hope if gives you a few idea's

    Nick





    dim global drvid as c
    dim global drvname as c
    dim rotbl as p
    dim drtbl as p
    dim coun as n
    dim indx as p
    dim query.description as c
    dim query.order as c
    dim query.filter as c
    dim query.options as c
    dim rnumber as n


    drtbl=table.current(2) 'Child table 1

    query.description="drvrollA"
    query.fitler=var->drvid
    query.options="M"
    indx=drtbl.query_create()
    coun=indx.records_get()
    drtbl.fetch_Last()
    if coun =0 then
    coun=1
    end if
    coun=drtbl.stop+1

    drtbl.fetch_first()

    rotbl=table.current(3)'child table 2

    drtbl.enter_begin()
    drtbl.stop=coun
    drtbl.cust_id=rotbl.cust_id
    drtbl.caller=rotbl.caller
    drtbl.csize=rotbl.csize
    drtbl.serdate=rotbl.serdate
    drtbl.disp=rotbl.disp
    drtbl.driver=var->drvname
    drtbl.driverid=var->drvid
    drtbl.company_na=rotbl.company_name
    drtbl.location=rotbl.location
    drtbl.ddate=rotbl.ddate
    drtbl.notes=rotbl.notes
    drtbl.ctime=rotbl.ctime
    drtbl.typeofserv=rotbl.typeofservice
    drtbl.page=rotbl.page
    drtbl.grid=rotbl.grid
    drtbl.country=rotbl.country
    drtbl.city=rotbl.city
    drtbl.workorder=rotbl.workorder
    drtbl.containernum=rotbl.containernum
    drtbl.lik="X"
    drtbl.complete=.f.
    drtbl.landfill=rotbl.landfill
    drtbl.zip=rotbl.zip
    drtbl.xycod=rotbl.xycod
    drtbl.enter_end(.t.)

    rotbl.change_begin()
    rotbl.extit=.t.
    rotbl.change_end(.t.)

    :Driverrouteform:Browse3.Resynch()
    sys_send_keys("{ctrl-W}")

    Comment


      #3
      RE: OnRowDblClick

      Why not just put a message in the OnRowDblClick event like this:

      ui_msg_box("You just double clicked this line","")

      then start the form and double click on a row and the message will appear. This simple example, will give you a feel for what the event can do.
      Gary S. Traub, Ph.D.

      Comment


        #4
        RE: OnRowDblClick

        Gary,

        So then OnRowDblClick is an event? I have version 4.03 and I can't find it in my events list for my form. Any ideas?

        Thanks!

        Comment


          #5
          RE: OnRowDblClick

          Nick,

          Thanks for your response. I can't find the OnRowDblClick in the events list on my form. I have version 4.03 - any ideas? Thanks!

          Comment


            #6
            RE: OnRowDblClick

            OnRowDblClick should be an Action available to the Browse embedded in a form,

            Comment


              #7
              RE: OnRowDblClick

              if BROWSE1:THIS.ACTIVE()="description"

              description is a column on browse1 - this permits me to react to a particular column on a browse

              although i usually use the feature to load a form for the child record to use for editing it.
              Cole Custom Programming - Terrell, Texas
              972 524 8714
              [email protected]

              ____________________
              "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

              Comment


                #8
                RE: OnRowDblClick

                Arthur:

                In design mode of the form, place the cursor on the embedded browse. Then, right click and go into Actions. Select OnRowDblClick from the 'Script' lookup.

                Hope this is clear. Good luck!

                Gary
                Gary S. Traub, Ph.D.

                Comment


                  #9
                  RE: OnRowDblClick

                  Gary,

                  Thanks! I was looking under Actions on the Form! Novices - ain't we great ? :)

                  Comment


                    #10
                    RE: OnRowDblClick

                    Thanks Sandy !

                    Comment


                      #11
                      RE: OnRowDblClick

                      Martin,

                      That's my intended use for it too. Would "description" then be the name of the form I'm calling?

                      Thanks!

                      Comment


                        #12
                        RE: OnRowDblClick

                        ''this is an example of where i go to a form to edit a child record i select from an embedded browse
                        cnum is a global variable, customer number is my application wide linking field. the operator is on the row for the record she wants to edit

                        parentform.commit()
                        cnum = parentform:customer_number.value
                        form.view("edithearaid")

                        'when edithearaid loads it will fetch cnum
                        'this is the script for the onit event for edithearaid
                        tbl=table.current()
                        tbl.index_primary_put("custnmbr")
                        tbl.fetch_find(cnum)
                        parentform.resynch()
                        ''******************************
                        these two examples are on a completely different form - Invoices - where the operator wants to search on each column of the browse

                        if BROWSE1:THIS.ACTIVE()="description"
                        namel=ui_get_text("Enter search value for DESCRIPTION","")
                        if namel=""
                        end
                        end if
                        namel="*" + namel + "*"
                        query.filter = "smatch((invoices->description),(var->namel))"
                        idx=tbl.query_create()
                        recs=idx.records_get()
                        if recs > 0
                        tbl.fetch_first()
                        parentform.resynch()
                        end
                        else
                        ui_msg_box("Sorry! Try Again!","No Records Found Containing This Value")
                        end
                        end if
                        end if
                        ''************************************
                        if BROWSE1:THIS.ACTIVE()="invoice"
                        namel=ui_get_text("Enter search value for INVOICE NUMBER","")
                        if namel=""
                        end
                        end if
                        namel="*" + namel + "*"
                        query.filter = "smatch((invoices->invoicenmbr),(var->namel))"
                        idx=tbl.query_create()
                        recs=idx.records_get()
                        if recs > 0
                        tbl.fetch_first()
                        parentform.resynch()
                        end
                        else
                        ui_msg_box("Sorry! Try Again!","No Records Found Containing This Value")
                        end
                        end if
                        end if
                        ''******************************************
                        Cole Custom Programming - Terrell, Texas
                        972 524 8714
                        [email protected]

                        ____________________
                        "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                        Comment


                          #13
                          RE: OnRowDblClick

                          Thanks Martin! I've got it working! I appreciate your help!

                          Comment

                          Working...
                          X