questionit Posted March 1, 2008 Share Posted March 1, 2008 Hi I am having problems writing a script. I am am beginner and i need your help please. My requirement is: When i open a FileMaker file, the script should display my specified layout first for 5 seconds and then open another layout. How can i write script for this. Thanks qi Link to comment Share on other sites More sharing options...
dmontano Posted March 1, 2008 Share Posted March 1, 2008 Be forewarned - I am a rookie. Try this and then check to see if there is a "right-way". Others may show you a better way, but here is what I would do in ScriptMaker until I learn otherwise: Go to Layout ["your_layout_a"] Pause/Resume Script [Duration (seconds): 5] Go to layout ["your_layout_b"] Those are the three script steps. Areas indicated inside brackets "[]" are what you get to define the parameters. Sounds like you are creating a Splash screen, you can add other steps to "hide status area, etc." - add as you see fit. Hope that helps. I tried it and it worked. Link to comment Share on other sites More sharing options...
dmontano Posted March 1, 2008 Share Posted March 1, 2008 I forgot the first part of your request. After you create this script, you need to tell FileMaker to run this script at start-up. Go to the top menu in FileMaker called "Menu", select "File Options". Select the "Open/Close" tab and check the box "Perform script". Then find the script you just created in the drop down. The next time Filemaker is opened, the script will run. You can call the start-up script or something. Link to comment Share on other sites More sharing options...
questionit Posted March 2, 2008 Author Share Posted March 2, 2008 Hi Thanks for your answer. The script you have told me to write works fine - but only when i run in manually. When i open the filemaker file from menu (or double-click to open it), then this script does not run. I have also set the Layout Tab order and my Splash layout is at top. When i open the file, neither Layouts open in right order that i have set nor does the script run ? Please advise Thanks Qi Link to comment Share on other sites More sharing options...
questionit Posted March 2, 2008 Author Share Posted March 2, 2008 Hi Please ignore my most rent post. I have sorted this out now. I have just read your last post about setting the sciript in "File Options" I have another question, how can i display the current time in the footer of the page? By current time, i mean the time which is happening at present - not the time when the file was updated/written/etc Thanks Qi Link to comment Share on other sites More sharing options...
Recommended Posts