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

Ui_dlg_ctl_goto()

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

    Ui_dlg_ctl_goto()

    ORIGINALLY POSTED IN THE APP SERVER FORUM, SORRY

    I searched the forums, and tried looking at related posts, but no joy.

    I have a simple question: can a ui_dgl_ctl_goto actually go to a radio button control?

    snippets of the dialog and code.

    Code:
    {justify=left}Change or Withdraw?{sp=8}(vCC:Change) (vCC:Withdraw){endregion};
    
      	if vCC=""
      		ERR_MSG = "Please select \"Change\" or \"Withdraw\""+crlf()+"...or click \"CANCEL\""
    		rslt = ui_dlg_ctl_goto(dlg_title,"vCC")
    		a_dlg_button=""
    	end if
    When I debug this, the value of rslt is false.

    Any help is appreciated...

    tom

    #2
    Re: Ui_dlg_ctl_goto()

    Tom,

    I see the prompt for the radio button, but I don't see the variable receiving the selection.

    check the syntax of your radio button again. Here's the help file link.

    I'm a little rusty so forgive me if this idea makes no sense. -- tom

    Comment


      #3
      Re: Ui_dlg_ctl_goto()

      Don't know if I'm reading it right but I see this

      UI_DLG_CTL_GOTO( Title as C, Control_Name as C )

      as meaning you supply the title, as you have and the control name, which you are attempting to pass as a variable. To me your usage would be

      ui_dlg_ctl_goto(dlg_title,vCC)

      but this is inside an if where we know vCC is blank, so there's nothing to goto?
      There can be only one.

      Comment


        #4
        Re: Ui_dlg_ctl_goto()

        Tom, Stan,


        Thanks for the response, but "vCC" IS the variable and the control name. I've had no issues going to other types of controls, it is just radio controls that throw me for a loop. I'm home now, but tomorrow, I'll post the dialog.

        Comment


          #5
          Re: Ui_dlg_ctl_goto()

          Originally posted by Tom Henkel View Post
          can a ui_dgl_ctl_goto actually go to a radio button control?
          Yes, ....but no.... because it does not make sense !!
          How so?
          First off: the snipet you provided does not say where do you test to see if vCC is blank?
          But regardless,
          Can you make the focus go to a radio button?
          Yes you can..but not with the method you attempted. You can with a different method, but..will ignore this for now because, as I said, it does not make sense.
          How so?
          If you want the focus to go to a radio button, where do you want it to land? i.e., On what choice of the radio button?
          If you want it to land say on the "Change" choice in the example you provided, then what you do is:
          Code:
          if vCC=""  
          vCC="Change"
          end if
          So, there is nothing to navigate to, you simply set the value of vCC because that's all you do when you go to it anyway..

          Comment


            #6
            Re: Ui_dlg_ctl_goto()

            Gabe,
            I was thinking about that, but what I was attempting to do was to see if the user clicked "OK", but didn't select a choice, I wanted to throw an error message, leave the dialog open, and force them to choose one of the options. The alternative is to blow them off and make them start over, which is not what I really want to do. I guess I could disable the "OK" button until something is selected...

            TimeOff.jpg

            I just changed the "OK" button to disable if "vCC" is blank. This will save a lot of grief...
            Last edited by Tom Henkel; 08-13-2015, 08:37 AM.

            Comment


              #7
              Re: Ui_dlg_ctl_goto()

              I figured that you wanted to make sure the user makes a radio button choice, i.e., the radio button is required.
              You could disable the OK button like you said
              You could throw an error message
              You could do both
              You could highlight the radio button in red for instance and do one or both of the above
              You could make it blink if you want..whatever works for you

              Comment


                #8
                Re: Ui_dlg_ctl_goto()

                The way I figure it is that if they don't make a choice, there is no reason to go any further, hence disabling the "OK" button.

                Comment


                  #9
                  Re: Ui_dlg_ctl_goto()

                  Hi Tom H.
                  Just wondering...if this dlg box is responding to a user choice on another form, why not have the radio buttons on that form, then your dlg box can respond to which choice was made for the next step to take? You could make 3 choices: Confirm Change Withdraw, with confirm as the default choice.
                  Robin

                  Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                  Comment


                    #10
                    Re: Ui_dlg_ctl_goto()

                    Robin,
                    This is actually part of a larger system where we are replacing a paper form for requesting time off. The user had already requested a specific date, and that request is displayed in an embedded browse in another dialog box. This dialog is in response to a doubleclck on the specific line in the displayed browse. I guess I could ask in the doubleclick action, but I didn't think of that.

                    Tom

                    Comment

                    Working...
                    X