Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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

  • Author

No, I have checked and everything is web compatible.

  • Author

It appears to be going to whatever layout was last open in the database.

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

  • Author

My "Open" script.

  • Author

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.

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?

  • Author

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.

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.

  • Author

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!

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.