Newbies Jeremy Posted March 20, 2003 Newbies Posted March 20, 2003 I am working on a database for my father that has a main menu system that needs to open specific files with the use of buttons. How in FileMaker would I get it to do this, would I need to use a script. If so how would I go about writing it. thanks for any help
Lee Smith Posted March 20, 2003 Posted March 20, 2003 In the script steps, there is an option (left side list) that say "Open". Choose it and move it to the Right Side, and then highlight it and you will be given options to open files, find the file and click ok (done) and than create a button where it can then be attached. HTH Lee
LiveOak Posted March 20, 2003 Posted March 20, 2003 The best way to do this is to open all the files (hidden) using a startup script in the main menu file. Use the Open [Hidden, "FileName"] script step. If you execute a script in another file (external script) from the Main Menu, it will open the file automatically anyway. It's just good design practice to open all files initially. -bd
Vaughan Posted March 20, 2003 Posted March 20, 2003 A better method is to define a "setup" script in each file that changes layout, sets the zoom level, window size, toolbars etc and ends with the "Refresh Window [bring to front]" script step. In your main menu, instead of using the "Open []" step use the "Perform Script []" step to externally call the "setup" script in the desired file. I've found that the "Open []" step works as expected when the file is closed, but after that it doesn't reliably bring the file to the front, and it certainly does not change the file to the desired layout etc.
Recommended Posts
This topic is 7922 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