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

Interesting Refresh issue

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

    Interesting Refresh issue

    I've uploaded a png of the form I'm working on, it is based on a set with a main one to many relationship between a table of checkpoints and child table of competitors that visit the check point and we can record arrival time, departure time etc for each in the relevant child record. (this is the 'Details' form)

    Because we are doing a lot of things in the background with recording data (the database controls events over a large area with data being passed to the user by amateur radio operators). I have a global variable called checkpoint_id, and there is a form level filter so that the data from only one checkpoint is available, to move to the data for another checkpoints you select the checkpoint from the multi-state button, and variable checkpoint_id is set to the record id for the new check point and the screen should refresh to show the data for the new checkpoint.

    My initial design works in that I have a separate form called 'Controller' (screen grab also uploaded) that has lots of other functionality but also has one of the multi-state buttons, which has the same code as on the details form but also also opens the details form and it shows the correct checkpoint constantly, so move between checkpoints, users would, close the details form (using the [menu] button), this would then show the 'controller' form they can then select the new checkpoint which would re-open the form details with the new checkpoint displayed.

    I realised that it would be quicker if they could just select the new checkpoint form the details screen and have it change to the data for the new check point. and added a duplicate multi-state button on the details form, However when I click on the multi-state button it doesn't always work, although it correctly sets the checkpoint_id variable the screen doesn't change. ( I have a screen refresh as part of the script)

    What I find rather stage is this:-

    1. I open the controller form and click on it's multi state button all works correctly and it consistantly opens the details form with the correct checkpoint shown
    2. I then try to move to another checkpoint using the multi-state on the details screen, however nothing happens, (although I know that the global variable has been updated correctly to the id of the new checkpoint)

    It now gets interesting

    3. If I then click on the form / browse layout button on the tool bar, it takes you to the default browse for this set / form but still shows the data from the original checkpoint.
    4. But if I click again on the form / browse button it takes me back to the form with the correct data shown

    What is really strange is that once I have done this once (toggled to browse and back again) then the multi-state button works correctly form then on.

    I have also tested opening the 'details' form directly rather than via the multi-state button on the 'controller' form and I still have the same problem

    Any suggestions what is being done in the background by Alpha 5 when I toggle between the browse and the form that might allow the multi-state to work from then on ?

    Thanks

    John

    #2
    Re: Interesting Refresh issue

    It's always refreshing to see such a well designed and clean user interface. Well done. As to your problem, obviously you have a resynching issue. Have you tried putting a parentform.resynch() at the end of your multibutton code? If that doesn't work, when you change the CP and the screen doesn't refesh, try hitting the F5 key to force a manual refresh. If that works, then put a sys_send_keys("{F5}") at the end of the multibutton code (but the parentform.resynch() might do the trick).
    Peter
    AlphaBase Solutions, LLC

    [email protected]
    https://www.alphabasesolutions.com


    Comment


      #3
      Re: Interesting Refresh issue

      Originally posted by Peter.Greulich View Post
      It's always refreshing to see such a well designed and clean user interface. Well done. As to your problem, obviously you have a resynching issue. Have you tried putting a parentform.resynch() at the end of your multibutton code? If that doesn't work, when you change the CP and the screen doesn't refesh, try hitting the F5 key to force a manual refresh. If that works, then put a sys_send_keys("{F5}") at the end of the multibutton code (but the parentform.resynch() might do the trick).

      Many thanks for the suggestions (and the complement over the layout), but no luck, I'm going to go back over the set it's built on and see if I've done anything stange.

      Regards

      John

      Comment


        #4
        Re: Interesting Refresh issue

        I've been trying various things to see if I can resolve this without any luck so I have now created a simple database to see if I could replicate the issue outside of my database and I can so either I'm setting things up wrong or it is a bug.

        In the hope that one of the really skilled developers might be able to spend 10 minutes seeing if I've dropped a real clanger I've attached a zipped database to this message.

        It contains two tables and two forms, one of the tables tbl_control is simply there so I could create a form called control on which I have the first multistate button, the second one tbl_checkpoint contains 4 records.

        The second form is designed to show one record from tbl_checkpoint using a form level filter checkpoint_id = a value stored in a global variable, the variable is set when the multistate is clicked on

        To see the problem:-

        1. Load the database and it will automatically open the first form on which will be a multistage button with 4 options: Start | CP1 | CP2 | Finish
        2. Click on any of these and the second form will open with the name of the one you selected in the orange field at the top.
        Note: this form is linked to the second table and is filtered by the option you selected when you clicked on the multistate, the onchange event sets a global variable 'selected_checkpoint_id' which is used as a form level filter 'checkpoint_id=var->selected_checkpoint_id'
        3. Click on the close button on the second form and repeat step 2 for one of the other options and you will see that the name in the orange field on the second form changes, this is the expected behaviour, you will also see that the values in the two fields on the second form checkpoint_id and selected_checkpoint_id stay in sync, as one would expect as this is the default form filter
        4. you can do this bit as many times as you want !!!

        The issue is this:-

        Once you have opened the second form you will see that there is another multistate button on this form as well exactly the same as on the first form. If you click on this multistate button yo will see that the whilst the entry in the field selected_checkpoint_id changes the screen does not refresh to show the new entry.

        So OK the first thought is that there isn't a refresh set up for the query and the form but they are there in the action script.

        Now the really interesting bit.

        Once you are on the second form and the multistate doesn't update the screen as it should, click on the design mode button on the tool bar as if you want to change something, then click on it again to go back to form view, and you will now find that clicking on the multistate on the second form works as expected. You can also do this by pressing F8 twice i.e. go to the default browse view and back to the form view

        Comment


          #5
          Re: Interesting Refresh issue

          I hope this is what you want.

          I changed the variables to global - not sure why... just trying a few things.

          The 2nd form is based on a table, so... on the multi-button I added a query to find the value of the variable that is set in the same set of actions. I left the refresh action in but you don't need it.

          Comment


            #6
            Re: Interesting Refresh issue

            Originally posted by Davidk View Post
            I hope this is what you want.

            I changed the variables to global - not sure why... just trying a few things.

            The 2nd form is based on a table, so... on the multi-button I added a query to find the value of the variable that is set in the same set of actions. I left the refresh action in but you don't need it.
            Thanks David - got to do real work today but will have a look this afternoon.

            Regards

            John

            Comment

            Working...
            X