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

How to get variables of embedded listbox xdialog

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

    How to get variables of embedded listbox xdialog

    I need to populate my form with the variable that selected from the
    listbox that created in the conditional object embedded xdialog.
    I upload the samples. Problem features in form activities.

    I need to do:
    1. select a client_id ( eg 0004)in the listbox.
    2. click OK button,
    3. form:client_id become "0004"
    4. form layout refresh.
    Have try search this board, did not found any thread.

    Any help is greatly appreciated.
    Regards,
    Razali

    #2
    Re: How to get variables of embedded listbox xdialog

    Not sure exactly what you want, but

    Here is a demo script of an xdialog based on your db. Create a new script, copy and paste this code into yours and save.

    when you run it will open a dialog where you can filter to the person. When you click continue it will take you to one of your forms based on that person.

    I made this with the xdialog genie - pasted as a script and then modified to capture user actions.
    -----------------------------------------------
    Regards
    Mark Pearson
    [email protected]
    Youtube channel
    Website

    Comment


      #3
      Re: How to get variables of embedded listbox xdialog

      Hello Mark,

      Thanks for the prompt help.

      My intention is to use conditional object as to replace the tab object in form. Reason is simply because it seem faster than others, browses or tab. I am using many levels of conditional sheets with different objects in them.
      With xdialog supercontrol, i can embed a list to search and browse.

      In this case, when adding the script into the xdialog supercontrol, the layout can not recognize the variables.

      When comparing the both scripts method, the xdialog supercontrol is faster to appear. (Demonstrated by files test1)

      Do you know how to make it work?

      Thanks.

      Razali

      Comment


        #4
        Re: How to get variables of embedded listbox xdialog

        I have read the help files and video example here
        Understood about the variables and binding it to form objects.

        Problem here is how to bind or link the variables created from xdialog genies such as this.

        Thanks.

        Comment


          #5
          Re: How to get variables of embedded listbox xdialog

          Hi,

          I guess the drop down xdialog browse seems to provide same purpose as what I was looking for. Faster to develop and implement.

          So I tried create the dropdown browse on the activities form filtering - Salutation = "Mr" from people.dbf table.

          This give error of field not found.

          Anyone knows how to solve this?

          Thanks.

          Comment


            #6
            Re: How to get variables of embedded listbox xdialog

            Razali,
            In the last sample you attached, what variables do you want to use from the xdialog and to what fields do you want to "bind" them? I could spend a ton of time guessing!! It seems as if all the variables you have in your xdialog are local and within functions....I would try dimming the ones wanted to be shared, otherwise the form will not be able to "see" them outside of the scripts your are running. Then use the "Variable Binding" tab when looking at your xdialog code in design mode to link them to your form fields.
            Mike
            __________________________________________
            It is only when we forget all our learning that we begin to know.
            It's not what you look at that matters, it's what you see.
            Henry David Thoreau
            __________________________________________



            Comment


              #7
              Re: How to get variables of embedded listbox xdialog

              Thanks MikeC for your help.

              Giving you my real scenario, I want to add an xdialog of client waiting or detail list in the conditional object of treatment form.

              So that I could view the waiting list by click the conditional button, then select a client, click 'OK' button to add that client into the current form or opening appropriate form with current selection.

              I seem could not find the variable since they all functional ones.

              So could you show me how to pick a variable, especially the clientId as shown in first attachment or 2nd if you prefer. From that on, I should be able to work on many other list as such.

              Thanks again.

              Comment


                #8
                Re: How to get variables of embedded listbox xdialog

                so much code in the xdialog it is hard to see what is going on....when did it work last....or didn't it? I suggest stripping all but the xdialog out of the script and get the variable to be seen--then add all the additional. one thing...if you are using the variable mylist1 you have an extra space when you are dimming it (do not think it is a contributing factor here though). But use the variable binding tab to link the variable (whatever one you intend to use) to the field you want.
                Mike
                __________________________________________
                It is only when we forget all our learning that we begin to know.
                It's not what you look at that matters, it's what you see.
                Henry David Thoreau
                __________________________________________



                Comment


                  #9
                  Re: How to get variables of embedded listbox xdialog

                  Thank you for the tips, MikeC.
                  I will try to work it out, to get the solution. Else I will use browse or button to call out the script as was suggested by Clunes earlier.

                  Thanks.

                  Comment


                    #10
                    Re: How to get variables of embedded listbox xdialog

                    Razali,

                    I know it is an 4 years old and you may have the solution already but I have this solution for other users.


                    3. form:client_id become "0004"
                    4. form layout refresh.

                    solution -- add the form filter at this fuction
                    Code:
                    function OnDoubleClick as c(lv as p,listView as p,args as p)
                    	WITH lv
                    		vmylist  = listView.GetRowValue(args.GetClickRow())
                    '		ui_msg_box("OnDoubleClick",vmylist)
                    	'add for form filter
                    	parentform.QueryRun("client_id="+quote(vMyList),"")     'or other way to find the record
                    
                    	END WITH
                    end function	
                    	
                    FUNCTION OnSelectionChanged AS V (lv AS P, listView as p )
                    	WITH lv
                    		vmylist = listView.Selection
                    '		ui_msg_box("OnSelectionChanged",vmylist)
                    	'add for form filter
                    	parentform.QueryRun("client_id="+quote(vMyList),"")
                    	END WITH
                    END FUNCTION
                    
                    'The {Listview} does not allowed the event, like " !vMylist_changed" so you have to use the Function()
                    If a_dlg_button = "OK"
                    	ui_msg_box("OnSelectionChanged",vmylist)
                    	'add for form filter
                    	parentform.QueryRun("client_id="+quote(vMyList),"")
                    	a_dlg_button =""
                    end if

                    Comment

                    Working...
                    X