In a startup script (see File Options) place a conditional script step, e.g.
If PatternCount ( Get ( ApplicationVersion ) ; "Web" )
ShowHide Status Area [Hide, Lock]
Thanks, I'll give that a try.
The status area is now hidden but my buttons don't seem to work right. I know this could be due to many things...how do I know for sure that I'm in web mode sort to speak. In your example script, where is application version, "web" found?
If you are using a browser to see the filemaker data then that is IWP - I think once you find the following functions listed below - that will answer your question about mode?
The function Get ( ApplicationVersion ) is available whenever the calculation engine dialogue is open - but you need to select from the drop down in the upper right of the dialogue (I too have found the this a little confusing) it DOES NOT show when "all functions by name" is selected - not sure why - you need to use the drop down to select "Get functions" then they will all show up in the function list of the calc editor.
In startup script I have set variable [$$isweb ; PatternCount ( Get ( ApplicationVersion ) ; "Web" )] so that I need that test only once and in all other scripting - I use
If ($$isweb )
do this thing
Thanks, I'll give that a try
This seems to do the same thing for me at this point. But I can access this in other srcipts if need be later. Further, so in my problem the web user is doing a find with a button, it goes to a field provides a drop down list, pauses for user input then continues. In my web view I can't get the find executed from the pause state (user intervention required). In the host site I simply hit return to move from pause.
Pause is not a supported script step for IWP - what version of FMP are you using?
Pause has been known to disable a session completely.
The script editor has a drop down that lets you know what steps are supported and which are not by greying out those that are NOT supported.
The "Show Compatibility" drop down choices are "All, Client, Server, or Web Publishing"
If you want the User to do the same things - you will need to add a button and change the logic to not use the Pause script step.
- Pause is not a supported script step for IWP - what version of FMP are you using?Is that statement totally correct? Pause *for duration* is not IWP-compatible due to the nature of how IWP works. But pause indefinitely is indicated as being compatible. Subsequent user action to Resume (with a custom button) seems to work fine.- Pause has been known to disable a session completely.Could you please elaborate on that?Thank you.David
Sure - I cannot recall the fm server or fmp version - but I had scripts that had the pause statement left open, ie.
not concealed (controlled) behind an if statement, e.g.
If (not $$isweb)
The result was that the session (IWP) simply stopped in its tracks - it would not respond - sort of lost its mind basically.
I have wondered about this somewhat since the beginning. But the only times I use a scripted Pause in IWP is for something like switching layouts where the user is offered two choices such as CANCEL (which resumes the Exit script and reverts to the original layout) or EXIT (which proceeds with the shutdown process). No other action is possible.
So, I wouldn't expect hiccups in such cases.
Thanks guys...I'm using version 10 and have added some buttons to drive the pause. That seems to work.
I'm wondering if there are easier ways to share for nodes outside of the wireless network we are running? Going to some reading about that but any advice or pointers to reading material would be appreciated. Thinking of something like "mobileme" where data is housed in the sky.