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

List control has an initial selection

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

    List control has an initial selection

    I have a list control that always seems to want to start off with an initial selection, but the record is not really selected.

    When I open the UX, the list control is blank. It won't show data until I do a search. But once I do a search, the first record in the list is always highlighted as if it were selected. But the value of the list is blank - the record is not really selected. If I then click on that record (or another record) THEN I get a selection.

    I have already put the initial focus to another control, so it is not a focus issue.

    I have other list records that work similarly, but without having this selection issue.

    I can't seem to see the difference between them.

    Anyone else dealing with this issue?

    #2
    Re: List control has an initial selection

    Originally posted by lgrupido View Post
    I have a list control that always seems to want to start off with an initial selection, but the record is not really selected.

    When I open the UX, the list control is blank. It won't show data until I do a search. But once I do a search, the first record in the list is always highlighted as if it were selected. But the value of the list is blank - the record is not really selected. If I then click on that record (or another record) THEN I get a selection.

    I have already put the initial focus to another control, so it is not a focus issue.

    I have other list records that work similarly, but without having this selection issue.

    I can't seem to see the difference between them.

    Anyone else dealing with this issue?
    Under List properties, there is a property "Allow NULL selection" to allow the list not to have a row selected. Could this be it?
    Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

    Comment


      #3
      Re: List control has an initial selection

      Larry you on an official or Pre-release?
      NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

      Comment


        #4
        Re: List control has an initial selection

        What is it that you're doing to know that the value of the List is blank?

        This process actually uncovers a bug. The property option "Allow NULL selection" cannot be trusted within the parameters of a search. In both a Keyword and Individual Controls search, with "Allow NULL selection" turn on, a search result ignores "Allow NULL selection" and, in my tests, the first row of returned rows is always fully selected. You should report this to Alpha.

        Comment


          #5
          Re: List control has an initial selection

          I am on an the latest official release.

          I have tried with and without allow null selection.

          As I said, it is one particular list. I have other lists that don't appear to exhibit this issue.

          The list in question is a parent list. If the row were actually selected, then it should show it's child list records. It does not.

          However, if you click on the row (which is already highlighted) then it will show the child records.

          If it actually DID show the child records, it might not be so bad - it would at least be working correctly.

          Note: We worked around the issue using deselectall

          Running a deselect all after the list has been rendered does the trick.

          We had to wrap it in a timeoutcontrol for a bit, but it seems to be doing the trick.

          Comment


            #6
            Re: List control has an initial selection

            Originally posted by Davidk View Post
            What is it that you're doing to know that the value of the List is blank?

            This process actually uncovers a bug. The property option "Allow NULL selection" cannot be trusted within the parameters of a search. In both a Keyword and Individual Controls search, with "Allow NULL selection" turn on, a search result ignores "Allow NULL selection" and, in my tests, the first row of returned rows is always fully selected. You should report this to Alpha.
            I'm not seeing the bug. I have "Allow NULL selection" on all my lists and they don't select any row either when initially rendered or when using the keyword search or individual search controls.

            https://www.screencast.com/t/c0cLHd0Me0Ck
            Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

            Comment


              #7
              Re: List control has an initial selection

              Originally posted by iRadiate View Post
              I'm not seeing the bug. I have "Allow NULL selection" on all my lists and they don't select any row either when initially rendered or when using the keyword search or individual search controls.

              https://www.screencast.com/t/c0cLHd0Me0Ck
              You're on a pre-release build... so...

              Also, you're not following the premise of the original post... where the List control is set to delay render until search. I don't know if your results will be the same, but you need to match the parameters of the issue for testing.

              If you look at your video again, you'll see there is a bug. In your first Quick search, the List is populated and no row selected. When you clear your selection... the first row is selected. However, in the Detail Search... this is not the case. That's a bug. It's not the same bug... it's another bug.
              Last edited by Davidk; 02-15-2018, 02:59 PM.

              Comment


                #8
                Re: List control has an initial selection

                Originally posted by lgrupido View Post
                I am on an the latest official release.

                I have tried with and without allow null selection.

                As I said, it is one particular list. I have other lists that don't appear to exhibit this issue.

                The list in question is a parent list. If the row were actually selected, then it should show it's child list records. It does not.

                However, if you click on the row (which is already highlighted) then it will show the child records.

                If it actually DID show the child records, it might not be so bad - it would at least be working correctly.

                Note: We worked around the issue using deselectall

                Running a deselect all after the list has been rendered does the trick.

                We had to wrap it in a timeoutcontrol for a bit, but it seems to be doing the trick.
                This detail actually makes a difference. The first row is, in a sense selected. If you were to place a button on your component which performed a .getValue() on the List control, you'll see that a value is returned.

                However, although the 1st row is set... and looks selected... the child lists have not been refreshed to reflect their parent. This could be another bug.

                If you wanted to, you could add a .refreshListData() method... which includes the option to "onlyRefreshDependentLists".

                Comment


                  #9
                  Re: List control has an initial selection

                  Originally posted by Davidk View Post
                  If you look at your video again, you'll see there is a bug. In your first Quick search, the List is populated and no row selected. When you clear your selection... the first row is selected. However, in the Detail Search... this is not the case. That's a bug. It's not the same bug... it's another bug.
                  Ah, right you are, I missed that after clearing the search.
                  Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

                  Comment


                    #10
                    Re: List control has an initial selection

                    Originally posted by lgrupido View Post
                    I am on an the latest official release.
                    I'm never sure what this means when I read it. Numbers I understand.

                    There was a post this week where the poster thought he was on the current release because he clicked Help, Check for new version, which is buggy since it only reports the version you're running. In his case it was reporting some pre-release from weeks ago. He thought he was on the last "official release" because that's what Alpha kinda told him in the message.

                    So... you're on 4770?

                    Comment


                      #11
                      Re: List control has an initial selection

                      4770_5018

                      I believe that is the latest official release.

                      I try not to deal with prerelease versions unless absolutely necessary because I support a few different servers and it's so much easier when everyone is on the same version across the board.

                      As I previously mentioned, I now have a workaround for this issue using list.deselectall

                      When I move up to the next release, I'll go back and check to see if this is still necessary if I remember to do so!

                      Comment

                      Working...
                      X