chrisknight55 Posted March 2, 2011 Posted March 2, 2011 Working in dBase IV years ago, I was able to put many scripts in one file and then refer to them as needed. A button would perform the script DO GetDate and it would go do that script (that was in a file of many scripts). It seems in FMP that scripts are always imbedded in the active layout. How can I store scripts elsewhere? Thanks
Ocean West Posted March 2, 2011 Posted March 2, 2011 you can store ( copy & paste ) scripts in other files - however when they execute they are context dependent on the active layout/record the goal for you is to make your code modular and not dependent on context by passing parameters and then the script will navigate to the proper context as needed.
Lee Smith Posted March 2, 2011 Posted March 2, 2011 Please update your Profile to reflect what Version of FileMaker you are using, Platform, and OS. If you have Advance, checkout Clip Manager by My FMButler. I use it all of the time, and you can copy your scripts to it, and then when you are ready to use it in a different TO, you can search and replace things such as Layout, fields, etc.. before copying them to your file. HTH Lee
bruceR Posted March 2, 2011 Posted March 2, 2011 Working in dBase IV years ago, I was able to put many scripts in one file and then refer to them as needed. A button would perform the script DO GetDate and it would go do that script (that was in a file of many scripts). It seems in FMP that scripts are always imbedded in the active layout. How can I store scripts elsewhere? Thanks For context reasons most scripts need to be in the interface file. But I suggest you turn the question around. You can use the separation model and place your data in another file and view it and interact with it in an interface file.
Recommended Posts
This topic is 5365 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