Jump to content
Sign in to follow this  
Toby B

Script opens 2nd copy of related DB

Recommended Posts

I have just deployed 13 FMPro 5.5 databases onto a FMServer 5.5 (server running on OS 9). The clients run on both OS X and OS 9.

I have set up various scripts throughout all 13 DBs that take the user to and fro between related DBs by using external scripts. These external scripts basically call a script in the related DB to go to a particular Layout. I call these scripts "Go To Related Layout ..." or something to that effect. The originating script will also perform a Toggle Window (hide) function on the first database to clean up the user experience.

The problem I have now is, that when the user clicks on a button that executes one of these "Go To Related Layout" scripts, a brand new copy of the related DB opens instead of just using the version that is already open but hidden.

Does anyone have any ideas as to why this is happenning?

Could it have anything to do with the fact that I saved the sharing on all DBs except the main DB as "Multi-User (Hidden)"?

Thanks in advance.

Share this post


Link to post
Share on other sites

It sounds like you have more than one FM file with the same name on your network, which is not a good thing. You should compress any clones or copies that use the same names.

Share this post


Link to post
Share on other sites

I fixed this by changing the sharing of all the other DB back to plain old Multi-User, instead of Multi-User (hidden).

Share this post


Link to post
Share on other sites

Whether it's hidden or not, you should still change any duplicate filenames on the network. You may end up with missing records, orphaned children, etc. if you don't.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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