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

Need to allow user to invoke "Show All"

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

    Need to allow user to invoke "Show All"

    I need to edit this code to ALLOW the user to clear the searched records and allow all records in the database to show.

    Here is part of the code that the "search" button filters for. This is the part that I need to edit.

    Can someone help me with the code? Can I just delete part of this section of code?

    Thank you,
    Wanda

    #2
    Originally posted by Wanda Tucker
    I need to edit this code to ALLOW the user to clear the searched records and allow all records in the database to show.

    Here is part of the code that the "search" button filters for. This is the part that I need to edit.

    Can someone help me with the code? Can I just delete part of this section of code?

    Thank you,
    Wanda
    If the button resides on the form itself, any one of these should do it.


    Code:
    topparent.command("SHOW_ALL")
    parent.command("SHOW_ALL")
    parentform.command("SHOW_ALL")
    There can be only one.

    Comment


      #3
      Not that simple, unfortunately. The button resides on a "menu" form with lots of other buttons that perform other searches, so I'm thinking I need to do something with the code in the OnPush event of the button.

      I do have a ShowAll button on the form that is opened after any "search" buttons are clicked. If any additional filtering is done by the user, clicking the ShowAll button clears the searched criteria. It does not clear any filters from any of the "search buttons" on my "search" form.

      Am I explaining it well enough? Also, I'm leaving in about 10 minutes and won't be able to respond back until tomorrow moring.
      Thanks, Stan.
      Wanda

      Comment


        #4
        Originally posted by Wanda Tucker
        Not that simple, unfortunately. The button resides on a "menu" form with lots of other buttons that perform other searches, so I'm thinking I need to do something with the code in the OnPush event of the button.

        I do have a ShowAll button on the form that is opened after any "search" buttons are clicked. If any additional filtering is done by the user, clicking the ShowAll button clears the searched criteria. It does not clear any filters from any of the "search buttons" on my "search" form.

        Am I explaining it well enough? Also, I'm leaving in about 10 minutes and won't be able to respond back until tomorrow moring.
        Thanks, Stan.
        Wanda
        Not sure, is there a problem with having a show all button on each form that may be opened?
        There can be only one.

        Comment


          #5
          The ShowAll button IS on the form that the "search" button on the "Menu" form opens, via code, instead of Action Scripting.

          In other words:
          1. Form A opens Form B when the Search button on Form A is clicked.
          2. The search filters out records when Form B is open, which is why ShowAll on Form B IS already showing all records in the search.
          3. Because Form B opens with the filter (search) ON, then the code for the search needs to be edited to allow Form B to truly show all records in the table - NOT just the one's that the search button on Form A filters.

          Get it? So, I need help, please with re-writing the code to allow Form B to show all records.

          Note that sometimes a user can/will use the filter button on Form B. In that case the ShowAll on Form B clears any/all filters invoked from that Form B. For this reason, I can't simply close Form B, Open Form A, click ShowAll (on the tool bar - or on a "ShowAll" button), Close Form A and re-open Form B with no records showing. The use would have to sit/wait and wonder why forms are closing, opening, closing, opening. I think that would be utter confusing to the user.

          Thanks,
          Wanda

          Comment


            #6
            Wanda, in form B do you want both:

            a) the ability to release any filter that was in effect when the form opens, thereby showing all records in the table

            and

            b) the ability to release any additive filter run by the user after form B opens in a filtered state.

            If I understand your question, you have (b) running ok. But you want (a). My question is do you want both?

            -- tom

            Comment


              #7
              Hi Tom,
              Yes, that is precisely what I want. :)
              Thanks!
              Wanda

              Comment


                #8
                Originally posted by Tom Cone Jr
                Wanda, in form B do you want both:

                a) the ability to release any filter that was in effect when the form opens, thereby showing all records in the table

                and

                b) the ability to release any additive filter run by the user after form B opens in a filtered state.

                If I understand your question, you have (b) running ok. But you want (a). My question is do you want both?

                -- tom
                Tom, anyone...any ideas how to code precisely what you, Tom, suggest here?
                Thank you,
                Wanda

                Comment


                  #9
                  Example

                  Wanda, here's an example illustrating one way to release the form's embedded filter. Hopefully, this will give you some ideas you can use in your app.

                  -- tom

                  Comment


                    #10
                    one way to handle this is to not set a filter for the form, from design mode - but rather to set it at the oninit event. Then the showall will easily work

                    like at oninit

                    t=table.current()
                    query.filter="companyname=var->cname"
                    query.order="companyname"
                    query.options=""
                    t.query_create()
                    parentform.resynch()
                    Cole Custom Programming - Terrell, Texas
                    972 524 8714
                    [email protected]

                    ____________________
                    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                    Comment


                      #11
                      Hi Tom and Martin,

                      Thank you so much for your suggestions, but I'm afraid neither of them will work - and for the same reason.

                      I can't place an embedded filter expression in the form, as there are several "search buttons" in 5 different forms (i.e. "search menus"), meaning that I would need just as many filter expressions. If there were a way to embed several filters on one form, then probably either solution would work.

                      Oninit is also part of the form properties, so I would only be able to invoke 1 "search" this way.

                      I'm toying with Tom's "Release Form Filter" button, but am getting error messages that the table doesn't exist (when, in fact, it does). I don't know code, and just have no clue what else to do with Tom's to adapt it to my app.

                      Any other ideas?

                      Thank you,
                      Wanda

                      Comment


                        #12
                        Despite our best efforts I think we're not understanding each other. Best idea now is for you to post a working model and point us to a button and form that you can then use as an example... -- tom

                        Comment


                          #13
                          Dang it...maybe I'll have to do that, which will take some time, as all records are confidential.

                          For now, I'm trying the following code:

                          tbl = table.open("sites")
                          query.filter="Equake=Y"
                          query.order=""
                          query.options=""
                          t.query_create()
                          parentform.resynch()

                          The error message I get is:
                          t.query_create()
                          Not found
                          t. not found

                          I dont' understand what it's telling me.

                          I'll copy the entire app to a different name, put in some dummy records and post it. This could take awhile.

                          Thank you so much,
                          Wanda

                          Comment


                            #14
                            Wanda,

                            You set the pointer as tbl
                            Code:
                            tbl = table.open("sites")
                            so you would need to use tbl.query_create()
                            Cheryl
                            #1 Designs By Pagecrazy
                            http://pagecrazy.com/

                            Comment


                              #15
                              Here is the zipped database.
                              1. Open the Main Menu form
                              2. Click on the Quick Screen button under Saved Searches.
                              3. Click on the Earthquake-proof button, which filters out all but the records (in the Sites Data Entry form) with a "Y" in the Equake field.

                              To clear the filter, the user must go back to the Main Menu (there is a button towards the top of the Sites Data Entry form which, when clicked, gives the user a list of forms he/she can chose). From the Main Menu, user must click on the Sites button below Data Entry. Then, once back in the Sites form, user can click the ShowAll.

                              This is cumbersom, although if you read my Instructions directly on the Quick Screen Menu, you'll see that I had given up and was just going to leave it as is, with instructions to explain how to clear all filters.

                              Thank you!
                              Wanda

                              Comment

                              Working...
                              X