Jump to content

How to script open database step


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

Recommended Posts

How do I add a script that runs upon the user opening the database over FM Server running in OSX? I just want to find all records and create a new record.

Furthermore, when the user quits the solution, I want to ensure that a script runs.

Link to comment
Share on other sites

Hi Jason,

Put the opening script in File Options > 'When opening file, Perform Script.'

Put the closing script there as well, under 'When closing file, Perform Script.'

:wink:

Link to comment
Share on other sites

Ooops. User. Do you also need to capture the User in a global gUserAccount field? Then your opening script can fire depending upon the User. I'm a bit unsure of which you need but I hope it helps anyway.

Link to comment
Share on other sites

Put the opening script in File Options > 'When opening file, Perform Script.'

It's a little more complex than this. This routine does not necessarily guarantee that the script will run. If this is a critical routine, then you have to go beyond this step to assure that the script does run.

Steven

Link to comment
Share on other sites

This topic is 6555 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.