Title
IWP - Display Message while user waits for layout to load.
Post
Hello Wise People,
I have a database that is accessed via Instant Web Publishing. When users log in they see a list of buttons to click on. The buttons take them to various reports by going to a different layout.
The issue is that some of the layouts take a few seconds to load because of large amounts of data being displayed. I want users to see a message such as "Please wait while your report loads..." during the short wait. This will ensure them that they did click the button and prevent them from clicking it again.
I have tried to implement this feature by creating a layout with the message above, and having the button script first go to the message layout and then go to the report layout. Unfortunately the script behavior is such that the message layout doesn't display to the user. It seems like the way scripts work in filemaker is that they want to do all the script steps before they change what the user is seeing.
Any ideas of how I can do this?
Thanks!
-shawn-
Here is an example script that demonstrates what I am talking about:
Go to Layout ["Message"]
Set Variable [$Count; Value:1]
Loop
Set Variable [$Count; Value:$Count + 1]
Exit Loop If [$Count = 999999]
End Loop
Go to Layout ["Final Layout"]
Lets say you are on a layout called "Main Layout" and you click a button that runs the above script (in Filemaker or IWP). What happens is that the script works for awhile on the loop (while still displaying "Main Layout") and then puts you into "Final Layout". You never see the "Message" layout during the process.
-shawn-