Dimples Posted July 3, 2007 Posted July 3, 2007 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
Vaughan Posted July 3, 2007 Posted July 3, 2007 Does it have iny steps in it that are not web compatible?
Dimples Posted July 4, 2007 Author Posted July 4, 2007 No, I have checked and everything is web compatible.
Dimples Posted July 4, 2007 Author Posted July 4, 2007 It appears to be going to whatever layout was last open in the database.
Vaughan Posted July 4, 2007 Posted July 4, 2007 In the File Options, which script is set to run at file open?
Dimples Posted July 4, 2007 Author Posted July 4, 2007 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.
Reed Posted July 4, 2007 Posted July 4, 2007 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?
Dimples Posted July 4, 2007 Author Posted July 4, 2007 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.
Reed Posted July 4, 2007 Posted July 4, 2007 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.
Dimples Posted July 4, 2007 Author Posted July 4, 2007 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!
Recommended Posts
This topic is 6620 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 accountSign in
Already have an account? Sign in here.
Sign In Now