Newbies GizmoGCHC Posted August 8, 2011 Newbies Posted August 8, 2011 Hi, I am rather new to this stuff so please excuse my NOOB question. I have a large filemaker database that has grown over the past 10 years. There are around 85 database files with a main menu that links to 15 or so different database files. The problem I am having is I have made a new layout on the Main Menu, a file dedicated to nothing else except to link to some of the other DB files we have. This new layout is a reports layout that will pull up the reports layouts from other database files via buttons. The way I have gotten this to work is to write a simple script in the main menu DB file and a script in the DB file I want to pull up the report layout in. The first 3 reports worked no problem but I cant get it to work for this one file. Looks something like this. Main Menu Button runs script. Open ("DB2") Perform Script ["Open" from file: "DB2"] Script in DB2 DB File (Open) Go to Layout ["Reports" (DB2)] The problem I am having is when it opens DB2 it runs a long script that is interfering with "Perform Script" in the Main Menu script I wrote. If I let the script run then rerun my script again after the window has loaded it will open the layout I want to open. So my question is, is there a way to disable the script from running in DB2 by added a line or two to the main menu script after "Open ("DB2")? Is there a better way to do this?
VickyNesbitt Posted August 11, 2011 Posted August 11, 2011 Hiya It looks to me like you have a script set to run upon opening DB2. I don't know what the purpose of this script it but it looks to me like you need to be looking at editing this script rather than your others. Halt script is not going to help you here as the halt script step halts every script running not just the script that performs it... To see if there's an open script in DB2 go to File, File Options and look at the When opening this file section. Let me know how you go with this! Vicky
comment Posted August 11, 2011 Posted August 11, 2011 How about something simple: instead of: Open File [ “DB2” ] Perform Script ["Open" from file: "DB2"] do only: Perform Script ["Open" from file: "DB2"] This will bypass the start-up script of DB2.
Recommended Posts
This topic is 4853 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