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

Select value on a button list or radio button without using mouse?

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

    Select value on a button list or radio button without using mouse?

    Is it possible to setup a button list or a radio button so that the user can make a selection by typing the first character of the value instead of clicking the mouse?

    So if the values are Yes/No/Maybe, they can click "Y" instead of taking their hands of the keyboard, grabbing their mouse and clicking Yes when they come to that field?

    I can do that with a standard drop down box, but the customer likes the look of a horizontal button list for this form.

    #2
    Re: Select value on a button list or radio button without using mouse?

    I couldn't get a button list to do what you want. You can use regular buttons, however, and tab to focus then the use can press enter to execute the onClick JS.
    Mike Brown - Contact Me
    Programmatic Technologies, LLC
    Programmatic-Technologies.com
    Independent Developer & Consultant​​

    Comment


      #3
      Re: Select value on a button list or radio button without using mouse?

      That is true. It's funny, because a buttonlist doesn't work the same way. If you press enter or space on a button in a buttonlist it does not select that value.

      In this particular case, some of the buttonlists are based off of data in a table. While it would be possible to do what you are suggesting, its a lot more coding than I was hoping for!

      Comment


        #4
        Re: Select value on a button list or radio button without using mouse?

        You've not detailed what version/build you're working with... but... not being able to select a button within a ButtonList control using Spacebar or Enter may be due to yet another Alpha bug.

        Tab into your Button List and hit your Spacebar or Enter key... then check your console. I'm getting this error...

        ButtonListSpaceEnterError.PNG

        It could be that Spacebar or Enter should work... but Alpha is failing.

        Once you tab into your ButtonList, each Tab will then move focus to a specific button. You may not be able to see it because of styling, but the buttons do get focus.

        You'd need to examine the ButtonList element to see focus changing to each button in the list.

        Comment


          #5
          Re: Select value on a button list or radio button without using mouse?

          I get that same error. However, I am not on the latest version of Alpha, I am one back - and I know there have been a LOT of changes since then.

          I will test it on the latest version as soon as possible and will submit a bug request if necessary. Thank you for pointing this out.

          Comment


            #6
            Re: Select value on a button list or radio button without using mouse?

            Just checked... and this error was introduced about 2 years ago. In Build 3670 (June 2016) you could select a ButtonList button with a spacebar or enter key.

            After that, and around the same time that the Alpha Style was introduced, this functionality is broken... and produces and error. So... the bug has been around for 2 years.

            You should report it... it will probably get fixed... but in a current pre-release. So... there's that.

            Comment


              #7
              Re: Select value on a button list or radio button without using mouse?

              I'll just point Selwyn to this thread!!!!

              Comment


                #8
                Re: Select value on a button list or radio button without using mouse?

                You could be a text box above the radio buttons. Then write the code so that when the user presses enter it will grab the first letter of whatever they type and update the radio button.

                Comment


                  #9
                  Re: Select value on a button list or radio button without using mouse?

                  Not sure how graceful that would look. I was thinking I could look at some keypress options too, but at this point I am hoping Selwyn will come through with something simple!

                  I have submitted the bug request to him already.

                  Comment


                    #10
                    Re: Select value on a button list or radio button without using mouse?

                    I am afraid that I don't agree that this is a bug. You could use the Keyboard shortcuts property to define keyboard shortcuts that would select a button in a Button List but I don't believe we have ever said that there are keyboard shortcuts for a Button List.

                    Comment


                      #11
                      Re: Select value on a button list or radio button without using mouse?

                      FYI: I have taken the discussion with Selwyn offline. I'll let you know if any thing comes of this one way or the other. I expect, at the least, that the javascript error will be taken care of.

                      Comment


                        #12
                        Re: Select value on a button list or radio button without using mouse?

                        Since my post was deleted if you want the code I posted please let me know.

                        If you get approval from Selwyn, please post the end result information for the benefit of the forum.
                        Last edited by Davidk; November 02, 2018, 01:24 PM.

                        Comment


                          #13
                          Re: Select value on a button list or radio button without using mouse?

                          It may good to bear in mind that bug is a software behavior that does not comply with the documentation.

                          Comment


                            #14
                            Re: Select value on a button list or radio button without using mouse?

                            Great question.
                            There is the HTML "accesskey" Global Attribute that can be specified for a control:

                            https://developer.mozilla.org/en-US/...utes/accesskey

                            This ought to work, but as noted in the above article there are browser compatibility issues. One key problem (pardon the pun) is what to do with conflicts between access keys the browser wants to use for itself vs. the keys you want to use. The other problem seems to be that one can create their own JavaScript keyboard handling code (like what is inside the AA Javascript library for LISTS) that interferes, overrides or just prevents the "accesskey" Global Attributes from working properly.

                            Here is some code to dynamically add the "accesskey" element to four buttons on a UX I was working with, which I could never get to work satisfactorily as indicated by the comment in the code. I do not know if it would make any difference if the "accesskey" attribute were included directly with the HTML definition instead of trying to attach the attribute after the control is created:

                            In Client-Side events of a UX inside "onRenderComplete"
                            Code:
                            var thisUX = {dialog.object};
                            thisUX.cptNavdViaBtn = false;
                            
                            // Setup acclerator keys for Next/Previous
                            // In Chrome these accelerator keys mess up the dropdown boxes by automatically
                            //   opening them up and then not closing them when combined with the 
                            //   code that selects first editable control in detail section.
                            var ctl = $(thisUX.dialogId + '.V.R1.BTN_NEXTDTL');
                            ctl.accessKey = 'n';
                            ctl = $(thisUX.dialogId + '.V.R1.BTN_PREVDTL');
                            ctl.accessKey = 'p';
                            ctl = $(thisUX.dialogId + '.V.R1.BTN_VALIDATE');
                            ctl.accessKey = 'v';
                            ctl = $(thisUX.dialogId + '.V.R1.BUTTON_DVSYNCHRONIZE_LIST_DRRATE');
                            ctl.accessKey = 's';

                            Comment


                              #15
                              Re: Select value on a button list or radio button without using mouse?

                              I used the UX Property "Keyboard shortcuts" to define several shortcuts to select a ButtonList value.

                              E.g. CTRL-Y executes this Javascript...

                              Code:
                              var bObj = {dialog.object}.getControl('buttonList1');
                              bObj.setValue('Yes');
                              I just checket today's pre-release and there is still a Javascript error if you press the SpaceBar or Enter Key while focus is on a ButtonList. This doesn't adversely affect the Keyboard shortcut... but I suspect it is the reason why SpaceBar or Enter no longer selects a ButtonList value.

                              Comment

                              Working...
                              X