Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I would like to use a script to open and view another filemaker database from the one I currently have open. I have been able to run external scripts, but I would like to actually view the selected database.

Posted

quote:

Originally posted by kel:

I would like to use a script to open and view another filemaker database from the one I currently have open. I have been able to run external scripts, but I would like to actually view the selected database.

Kel:

Well there are a number of ways to do this. The most obvious way is using the Open File script step. You just include it and specify the file you want it to open. When you run the script it opens the file and you can view the database. However, there is a trick to this ease. If you run the open script and it opens the file, and then you go back to the original database and run it again, you get problems. Sometimes it opens the file twice, or causes the target database to behave erratically.

So what I do, I create a script in the target database (that I want to open) called "Switch to this". All this script does is change to a certain layout (you can also let it find all records or whatever). Then I create a script in the original database called Open File X (where X is the name of the target database), and all it does is execute the external script "Switch to this" in the target database file.

And that's it. You're done.

smile.gif" border="0

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