Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6421 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am publishing my database with Instant Web Publishing and when I access it from the web the script that I have assigned to run on open does not run. Is there a way to make a script run at the time that a user accesses the database from the web?

Thanks

Posted

Does it have iny steps in it that are not web compatible?

Posted

In the File Options, which script is set to run at file open?

Posted

I did a kind of fix around but it won't catch it everytime. I put a logout button with the open script in it before it closes the application. So that that is the last layout viewed. But if the user doesn't logout by clicking on the logout button then it won't work.

Posted

Are you logging in as the same user when you access via IWP as when you open with FMP? Does the IWP account have privileges to run that script?

Can you post the file?

Posted

Yes to everything you asked. I am logging in with my admin account with full priv. everytime. One question since I am new to IWP. If a user simply closes the browser window and does not click the logout button in the side panel will it forever keep them logged in or is there a time out period? What is happening is when the browser window is closed and the logout button in the side panel is not clicked, only then is when the open script does not run.

Posted

There is a configurable timeout in the IWP preferences. (or in the admin console if you use FMSA)

I did reproduce the behavior you describe with my own file. As long as the session is not expired, the user will be brought back to the layout they were on when the window was closed. Also, the values of any global fields, or variables or any other session-specific information is preserved as well.

You can shorten the timeout to minimze this behavior, and also just place a big red "Logout" button on the layout attached to the "Exit Application" script step, and that will also end the session.

Posted

Thank you for your help. I did put a big logout button on each layout to help with this and I will also configure the timeout alittle shorter. Thanks so much!

This topic is 6421 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.