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

Problem with "Show All" option!

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

    Problem with "Show All" option!

    I am attaching an example database which has two tables (table1 and table2) and two forms (table Form1 and table Form2). I have placed a button on table Form1 which opens table Form2 using the "records that match the value in the control on the current Form" selection criteria. When Form2 is called it desplays the matching record correctly but does not allow the "Show All" option to clear the selection criteria. In order to use this option the form has to be closed and reopened. Is this correct or should the "Show All" function work immediately?

    Do I need to include anything else in Action Scripting when calling a form to get this to work?

    Thanks,

    Mike

    #2
    RE: Problem with

    Mike,

    The reason this happens is Alpha uses a filter to set the record in form2 and show all is not available. If you need to remain on form2 to fetch other records then you can put a button on form2 with the folowing code:

    topparent:tables:table2.filter_expression = ""
    topparent:tables:table2.order_expression = ""
    topparent:tables:table2.query()

    This will release the filter and allow you fetch the other records that were not part of the filter.

    Hope this helps.

    Scott

    Comment


      #3
      RE: Problem with

      Thanks Scott, I will try this out. It would be much simpler if the "Show All" option could be made available! I have limited space on my Form and another button to clear a filter is a bit of an overkill.. This will also confuse my users who have just got used to pressing one button to get to the form in the first place. :)

      Mike

      Comment


        #4
        RE: Problem with

        Hi Mike,

        I have the following script on a browse that OnRowDoubleClick takes me to a form with the record number on that row. I have a message box to pop up just to confirm that is the correct number. Once on the form normal navigation is posible. Try it and see, you will have to change the form and table names.

        Keith Hubert
        London.


        dim fm as p
        dim recno as n
        dim rechar as c
        dim response as n
        recno=this:record_number.value
        response=ui_msg_box("Confirm Record Number", "RECORD NUMBER "+str(recno)+chr(13)+"Press OK to Continue or"+chr(13)+"Cancel to Cancel Action",289)

        if response=2 then ui_msg_box("Warning","Action Aborted",16)
        END
        end if
        tbl=table.current()
        query.description="Select Record Number"
        query.filter="record_number=var->recno"
        fm=form.load("Jobs")
        fm:tables:Schedule.query_create()
        fm.resynch()
        fm.show()
        fm.resynch()
        fm.activate()
        fm.show_all()
        END
        Regards
        Keith Hubert
        Alpha Guild Member
        London.
        KHDB Management Systems
        Skype = keith.hubert


        For your day-to-day Needs, you Need an Alpha Database!

        Comment


          #5
          RE: Problem with

          Mike,

          You can make a custom menu for the form and do away with the button if you need to. There are other approaches you can use to avoid the filter, like fetching a record based on a variable. That would avoid having to filter and instead just open your form to the desired record. It really all depends on your real app as to what other options you have. Form 2 appears to me to be a support file for a main record in form one, so I don't know why you need to scroll form2's records, but thats just me. I am sure you know what you need to do.

          Good luck, hope I have helped some.

          Scott

          Comment


            #6
            RE: Problem with

            Thanks Keith, I would still like the "Show All" option to clear the filter for me as this would be a logical choice for a user!

            Sorry that I did not get back to you today but we have had big problems with the upgrade of our Call Centre software, hence the problem you experienced when you tried to contact me.

            I will try and touch base with you tomorrow.

            Best regards,

            Mike

            Comment


              #7
              RE: Problem with

              Mike,

              I agree with Scott.

              If you want the user to be able to navigate after the called form is open, change the script to fetch the desired record without placing a filter on the form. Will run faster, too.

              -- tom

              Comment


                #8
                RE: Problem with

                Keith,

                Very nice .. I like that ...

                Scott

                Comment


                  #9
                  RE: Problem with

                  Michael,

                  The xbasic scripting language the Alpha Five uses is capable of directly manipulating the table beneath a form, and is also capable of manipulating the table through the form. In this case I think the action script is manipulating the table beneath the form, and then is using the form to simply display the result. Show All would appear if you opened the form manually and ran the query using the form to manipulate the table, instead of Xbasic. Since your script is working in the background, the toolbar is probably unaware that the table has been filtered. I believe it would be possible to alter your script to have the form run the query, instead of the script itself. In that event, Show All would probably appear. Care to post a copy of your database so that we can take a crack at modifying it to do this ?

                  -- tom

                  Comment


                    #10
                    RE: Problem with

                    Mike,

                    Here's an example showing how one can run the query 'through' the form. Doing it this way the form's elements are aware of what's going on, and Show All is activated.

                    Unzip the attachment to an empty folder.

                    when you look at the script you'll see that the script does not directly manipulate the underlying table. Instead it uses methods available in the form object so that the form itself is manipulating the table... just as though the user were doing it manually.

                    -- tom

                    Comment


                      #11
                      RE: Problem with

                      the show all button is INTENTIONALLY disabled on the form in this case, (and i might add we go to some trouble to make sure that it is disabled).

                      the reason is simple:

                      assume that you, the developer, put a filter on a form. say you put the filter "state = 'ma'" on the form (in the form's Filter property). we presume that you only want your users to see records where state is 'ma'. this will be the case when your user opens the form. we presume that you don't want the user to be able to remove the filter and see other records that you did not want him to see. so we disable the show all command (and also the change index command, and the change index button on the find by key dialog).

                      if you want to be able to have the show all button enabled, then you must open the form, and then apply the filter AFTER the form has been opened (in which case the filter is just as if the USER applied the filter). the show all button is then enabled.

                      instead of opening the form visibly, you can load the form, then apply the filter, then show the form.

                      Comment


                        #12
                        RE: Problem with

                        This latter case is what my example illustrates.

                        -- tom

                        Comment

                        Working...
                        X