Can anyone tell me why my perform script on server (in web direct) works when I am logged in to web direct but stops immediately I log out?
its driving me insane!!!!! Michael
Not sure I understand completely. Log out = quit out of the solution in your FileMaker Pro?
PSoS has two settings:
- either your client script waits for it to complete
- or it doesn't. in this, after running the PSoS you could quit out of your client session.
But it seems odd that you'd want that, is this something that could be run as a server-side script instead?
i have a solution which clecks the delivery status of packages when no one is Logged in on server. The script is supposed to wait until the user exits from the server. then performs the script. when I test it while I am logged in to the server. It works perfectly but when I exit the application on the server It doesn't execute... I must be doing someing wrong..
Do you use trigger to capture OnLastWindowClose?
No Johan, I didn't, use trigger to capture OnLastWindowClose ....should I ?
If you did you could capture user closing your solutions and handle problems
michaelkirwan wrote: The script is supposed to wait until the user exits from the server. then performs the script.
The script is supposed to wait until the user exits from the server. then performs the script.
What do you mean "user exits from the server".
Is a user running a copy of FileMaker Pro *on* the server?
Is the script supposed to run while no users are connected to the server over the network?
Is the server using FileMaker Server? or FileMaker Pro with network sharing?
I'm sorry Jason. i should have said web direct rather than server... Michael
When a client logs in on the server a session is opened there. Scripts of this client are running in that session. If client logs off the session is closed and can't perform scripts any more.
I think I should have mentioned I am talking about web direct. Michael
If you aren't using OnLastWindowClose to perform the script, how are you setting up the solution to perform this script?
Is it hosted from FileMaker Cloud or Server?
I am hosting it on "Datatrium.com". My problem is I don't know how to script it properly.. I looked at videos from Chris Ippolite and Matt Patrowskey... but they don't seem to cover it all. Michael
Since you are using server with the hosting service, one option is to use the server admin console to set up a schedule to run this script.
You could also use OnLastWindowClode in File Options to run this script. The server schedule would run this script once a day. The trigger would run every time a user exits the solution.
In either case, you also need to check the script for server compatibility as not all steps are compatible server side.
Retrieving data ...