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

multi-select checkbox or dropdown in search part

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

  • multi-select checkbox or dropdown in search part

    I'm trying to filter records by team, and for the sake of simplicity, let's say they're team numbers 1, 2, and 3.

    Is there any way to have a checkbox or dropdown field in the search part that will allow me to search for records containing more than one of these teams at a time? Using the checkbox option or the dropdown, even as a multi-select, seems to return records only related to the last one picked--e.g. if I select 1 and 3, it only returns records with 3.

    Surely there's a way--I'm hoping so, because I'd like to spread this functionality throughout my application. I'm working against MS SQL tables, by the way, and the checkbox/dropdown options are dynamically populated from a SQL table if any of that matters to my question.

    Thanks in advance for suggestions.

  • #2
    Re: multi-select checkbox or dropdown in search part

    1,3 is what should work in a search but I think there is a bug with sql searches. Other searches like 1..4 are supposed to work as well but again not with sql currently. Sorry I have never used multi-selects on web side.
    Chad Brown

    Comment


    • #3
      Re: multi-select checkbox or dropdown in search part

      How many teams are there and how many do you need to select at any one time?

      David

      Comment


      • #4
        Re: multi-select checkbox or dropdown in search part

        Steve Workings helped me troubleshoot a similar problem. I will post the code/solution when I get home this evening. We had to create an override to accomplish this.

        Comment


        • #5
          Re: multi-select checkbox or dropdown in search part

          Josh (or Steve or others),

          Could you help me out with this?

          The multi-select checkbox works for static list options, just not for the SQL-based dynamically-populated ones.

          Thanks in advance.

          Comment


          • #6
            Re: multi-select checkbox or dropdown in search part

            I am also suffering from this bug. For me, checkboxes in the search part of a grid do not support multiple selection even with a static list of values.

            Comment


            • #7
              Re: multi-select checkbox or dropdown in search part

              Originally posted by christappan View Post
              I'm trying to filter records by team, and for the sake of simplicity, let's say they're team numbers 1, 2, and 3.

              Is there any way to have a checkbox or dropdown field in the search part that will allow me to search for records containing more than one of these teams at a time? Using the checkbox option or the dropdown, even as a multi-select, seems to return records only related to the last one picked--e.g. if I select 1 and 3, it only returns records with 3.

              Surely there's a way--I'm hoping so, because I'd like to spread this functionality throughout my application. I'm working against MS SQL tables, by the way, and the checkbox/dropdown options are dynamically populated from a SQL table if any of that matters to my question.

              Thanks in advance for suggestions.
              I don't really know what you are doing, but I very much doubt that there is a bug in the Search part relating to checkbox controls.

              There might be a mismatch of expectation on how the checkbox control works in a search part. It combines multiple selections with an OR operation. Some people might prefer to use the AND operation.

              Therefore I have added this as an option in the next update.



              http://www.ajaxvideotutorials.com/V1...luesFields.swf


              This file contains a pre-release of the updates to the aex file that will be in the next update. Exit from Alpha Five and unzip this file into your A5V10 program folder. You must also unzip it into the A5V10 Server folder if you are running the stand-alone App Server. http://downloads.alphasoftware.com/a...te/aex_v10.zip

              This file contains an update to the exe and dll files. Exit Alpha Five and unzip into your program folder. You must also unzip it into the A5V10 Server folder if you are running the stand-alone App Server. http://downloads.alphasoftware.com/a...dllexe_v10.zip

              Comment


              • #8
                Re: multi-select checkbox or dropdown in search part

                Selwyn, I appreciate your help on this, though my expectations aren't mistaken about how it works; I have two checkbox search criteria on one of my grids, and the second one works as expected while the first doesn't.

                I went back to this with full intentions of proving you wrong (at least in my mind) but found that the builder is working in cases that I didn't expect it to. However, it still doesn't work with the search criteria I need. I had previously thought the difference was between a static list and dynamic, but it's not--it's the type of SQL field itself. I'm trying to filter on our Team Leaders' ID numbers, which are a number field in the database. In fact, as I explored, under Checkbox Properties there are five settings on non-numeric fields while there are just two on the numeric fields (see attached). So Alpha's definitely treating these fields differently, perhaps for reasons above my head (entirely possible) or perhaps not. If it's the former, I'd love assistance in figuring it out.

                Thanks in advance.

                Comment


                • #9
                  Re: multi-select checkbox or dropdown in search part

                  Originally posted by christappan View Post
                  Selwyn, I appreciate your help on this, though my expectations aren't mistaken about how it works; I have two checkbox search criteria on one of my grids, and the second one works as expected while the first doesn't.

                  I went back to this with full intentions of proving you wrong (at least in my mind) but found that the builder is working in cases that I didn't expect it to. However, it still doesn't work with the search criteria I need. I had previously thought the difference was between a static list and dynamic, but it's not--it's the type of SQL field itself. I'm trying to filter on our Team Leaders' ID numbers, which are a number field in the database. In fact, as I explored, under Checkbox Properties there are five settings on non-numeric fields while there are just two on the numeric fields (see attached). So Alpha's definitely treating these fields differently, perhaps for reasons above my head (entirely possible) or perhaps not. If it's the former, I'd love assistance in figuring it out.

                  Thanks in advance.

                  if you truly believe that there is an issue here (i am not convinced), then you need to submit a proper bug report. a picture is not an adequate bug report.

                  you need to send a sample app that demonstrates the problem, or step by step instructions on how to set up a test case with a database we both have (e.g. alphasports).

                  thank

                  Comment


                  • #10
                    Re: multi-select checkbox or dropdown in search part

                    I solved my issue: "Allow 'Query by Form' syntax" (under Search Options) needed to be checked.

                    Chris, does this help you?

                    Comment


                    • #11
                      Re: multi-select checkbox or dropdown in search part

                      After these recent posts, Selwyn and I corresponded and the root issues is that my search criteria was a numeric field. The example I gave was this:

                      Individual Status Rep_ID
                      Chris Current 4
                      Selwyn Current 8
                      Martin Pending 8

                      I can use a checkbox to select Current and return Chris and Selwyn or I can select Current and Pending and return all three. But I can't do the exact same thing with Rep_ID because it's a numeric field. Maybe that's just understood by you veterans, but it was news to me.

                      The good news is I got around it once I understood the issue. Now I'm including a column called "convert( varchar(4) , Rep_ID, 0) AS rep_id_char" in my query and then searching that column based on a similarly-converted query. Maybe someone else will benefit from this...
                      Last edited by christappan; 06-15-2010, 10:48 PM.

                      Comment

                      Working...
                      X