March 20, 200322 yr Newbies 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
March 20, 200322 yr 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
March 20, 200322 yr 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
March 20, 200322 yr 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.
Create an account or sign in to comment