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

X-Dialog dblclick event?

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

    X-Dialog dblclick event?

    Hello All,

    Can anyone tell me why the double-click event in the following code is not causing the message box to appear?

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++

    DIM form_name as C
    if is_object(topparent.this) then
    form_name = topparent.name()+".this"
    else
    form_name = ""
    end if
    DIM SHARED vc_search_input as C
    DIM SHARED vc_search_select as C
    DIM SHARED varC_result as C
    DELETE expression_result
    expression_result = eval("\"\"",form_name)
    vc_search_input = convert_type(expression_result,"C")
    DELETE expression_result
    expression_result = eval("\"\"",form_name)
    vc_search_select = convert_type(expression_result,"C")
    ok_button_label = "&OK"
    cancel_button_label = "&Cancel"
    DIM vc_search_select_rl_def_orig as C
    vc_search_select_rl_def_orig = "kl=tbl_customer,{keylist_build(\"H=.025,1:35[Customer Name],2:35[Street Address],3:15[City],4:15[State]\",''+Customer_id,left(''+Customer_name,35),left(''+Street_address_1,35),left(''+Street_city,15),left(''+Street_state,15))}{Customer_name "= [varC-"vc_search_input]}"
    DIM vc_search_select_rl_def as C
    vc_search_select_rl_def = replace_parameters(vc_search_select_rl_def_orig,local_variables())
    varC_result = ui_dlg_box("Search for customer (by company name)",""%dlg%
    {region}
    | [.100vc_search_input!vc_search_input_changed];
    | [%@vc_search_select_rl_def%.100,25vc_search_select!list_*];
    {endregion};
    {line=1,0};
    {region}
    "*15=ok_button_label!OK" "15=cancel_button_label!CANCEL"
    {endregion};
    %dlg%,""%code%
    If a_dlg_button = "vc_search_input_changed" then
    vc_search_select_rl_def = replace_parameters(vc_search_select_rl_def_orig,local_variables())
    a_dlg_button = ""
    else if a_dlg_button = "list_dblclick" then
    ui_msg_box("title","message",UI_STOP_SYMBOL)
    a_dlg_button = ""
    else
    a_dlg_button = ""
    end if
    %code%)

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Thanks,

    Louis

    #2
    RE: X-Dialog dblclick event?

    Normally, in the event code you would trap each action separately and trap all of the actions for the event that has the doubleclick

    ""%code%
    If a_dlg_button = "vc_search_input_changed" then
    vc_search_select_rl_def = replace_parameters(vc_search_select_rl_def_orig,local_variables())
    a_dlg_button = ""
    end if

    if left(a_dlg_button,5_) = "list_"
    if a_dlg_button = "list_dblclick" then
    ui_msg_box("title","message",UI_STOP_SYMBOL)
    end if
    a_dlg_button = ""
    end if
    %code%)

    Jerry

    Comment


      #3
      RE: X-Dialog dblclick event?

      Jerry,

      Thanks for your suggestion. I understand the changes you made, and they make perfect sense, but the dblclick event still does not appear to be firing.

      Below, is a revised version of the code. It was written to work with the "Customer" table in Alpha Sports. I had to remove the underscore in your code ***if left(a_dlg_button,5_)*** to get the script to run at all. I assume that this was a typo.

      If you or anyone else for that matter wouldn't mind creating a new script in Alpha Sports and pasting the following code into it, then taking a look at why the double click is not causing the message box to pop-up, I would sure appreciate any guidance that can be offered.

      '************Code Follows***************
      'Create an XDialog dialog box to prompt for parameters.
      'In order to evaluate expressions using the eval() function, in the context of
      'the current form, the "form_name" variable is defined.
      DIM form_name as C
      if is_object(topparent.this) then
      form_name = topparent.name()+".this"
      else
      form_name = ""
      end if
      DIM SHARED v_search_input as C
      DIM SHARED v_search_Select as C
      DIM SHARED varC_result as C
      DELETE expression_result
      expression_result = eval("\"\"",form_name)
      v_search_input = convert_type(expression_result,"C")
      ok_button_label = "&OK"
      cancel_button_label = "&Cancel"
      DIM v_search_Select_rl_def_orig as C
      v_search_Select_rl_def_orig = "kl=customer,{keylist_build(\"H=.025,1:35[Lastname],2:35[Address],3:15[City],4:15[State]\",''+Customer_id,left(''+Lastname,35),left(''+Bill_address_1,35),left(''+Bill_city,15),left(''+Bill_state_region,15))}{Lastname "= [varC-"v_search_input]}"
      DIM v_search_Select_rl_def as C
      v_search_Select_rl_def = replace_parameters(v_search_Select_rl_def_orig,local_variables())
      varC_result = ui_dlg_box("Search by customer name...",""%dlg%
      {region}
      | [.100v_search_input!v_search_input_changed];
      | [%@v_search_Select_rl_def%.100,25v_search_Select!list_*];
      {endregion};
      {line=1,0};
      {region}
      "*15=ok_button_label!OK" "15=cancel_button_label!CANCEL"
      {endregion};
      %dlg%,""%code%
      If a_dlg_button = "v_search_input_changed" then
      v_search_Select_rl_def = replace_parameters(v_search_Select_rl_def_orig,local_variables())
      a_dlg_button = ""
      end if
      if left(a_dlg_button,5) = "list_"
      if a_dlg_button = "list_dblclick" then
      ui_msg_box("title","message",UI_STOP_SYMBOL)
      end if
      a_dlg_button = ""
      end if
      %code%)

      '***********End of Code***********************

      Thanks

      Louis Nickerson

      Comment


        #4
        RE: X-Dialog dblclick event?

        [%@v_search_Select_rl_def%.100,25v_search_Select!list_*];

        You have defined an edit control here. Edit controls do not have a double click event.
        Aaron Brown
        Alpha Software Development Team

        Comment


          #5
          RE: X-Dialog dblclick event?

          Aaron,

          Thank you for your observation.

          This control was created using the X-Dialog genie and was defined as a "Record List List Box".

          How is it that it is an "Edit Control" and based on the look and functionality I am trying to achieve, what type of control would you suggest?

          Thanks Again,

          Louis

          Comment


            #6
            RE: X-Dialog dblclick event?

            Louis

            I didn't look carefully and see you had a record list list box, which Aaron points out does not have a doubleclick. However, a conventional list box does have a doubleclick event. If you use advanced formating, you can make a list box very similar to one using keylist_build(), which is
            what you are using.

            Jerry

            Comment


              #7
              RE: X-Dialog dblclick event?

              Jerry/Aaron,

              I created a test script using a simple list box and it did in-fact recognize the double click, however...

              If I populate that simple list box with the contents of a table instead of supplying a crlf list of options, it does not work.

              Any new ideas?

              Thanks,

              Louis

              Comment


                #8
                RE: X-Dialog dblclick event?

                Louis

                When you say "does not work", what do you mean? I have attached a script for a xdialog list box created in Alphasports using the Customer table. If you doubleclick on an entry, the doubleclick fires. Just open Alphasports and import this script and try it.

                Jerry

                Comment


                  #9
                  RE: X-Dialog dblclick event?

                  Jerry,

                  Thanks for the example!

                  I am working on a pretty complex X-Dialog and your example is proving to be a huge time saver.

                  Thank you very much!

                  Louis

                  Comment


                    #10
                    Re: X-Dialog dblclick event?

                    Louis,

                    I have the same problem as this tread.
                    The Jerry's attachment is contained as
                    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                    <HTML><HEAD>
                    <TITLE>404
                    Not Found</TITLE>
                    </HEAD><BODY>
                    <H1>Not Found</H1>
                    The requested
                    URL //alphaphorum/files/200502/a5v6/36/12236/Xdailog_dblclick%20-%2002-03-2005%20-1.txt
                    was not found on this server.<P>
                    <HR>
                    <ADDRESS>Apache/1.3.11 Server at msgboard2.alphasoftware.com Port 80</ADDRESS>
                    </BODY></HTML>
                    *

                    I have the DropDown List Box with CRLF list from SET tables. I'd like to have the editable and refreshed dropdown list when I click on this box.

                    How did you make this editable dropdown box?

                    This is my part of an xDialog code.
                    Code:
                    vVndrLists = set.external_record_content_get( ......)
                    
                    ui_dlg_box(dlg_title,<<%dlg%
                    .....
                    .....
                    Vendor:| [.10vVndrId^=vVndrLists!vVendor_*];
                    .....
                    .....
                    %dlg%,<<%code%
                    if Left(a_dlg_button,7)="vVendor" then
                    	
                        If a_dlg_button ="vVendor_setfocus" then
                        	        vVndrLists =""
                    		
                                    vVndrLists = set.external_record_content_get("SomeTbl.set", ....)
                    		
                                    a_dlg_button=""
                    	end if
                        a_dlg_button =""
                    end if

                    Comment

                    Working...
                    X