Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6182 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi, I am trying to delete unused scripts in a solution. I am using the DDR in FMPA8.5 I may be missing the point, but when I look for unused scripts, they are not identified as not being used. It shows if they are used on a layout, on in another script, but doesn't show whether they are used from a button. I have a lot of scripts that are triggered from buttons and these are shown on the DDR exactly the same as unused scripts. Is there something I am missing, or is it the old manual search option...? Can anybody throw any light on the subject. Thanks...

  • 2 weeks later...
Posted

It's too bad nobody has answered this one. I would also very much like to know how to track which scripts aren't being used so I can clean them out. I came up with something clunky, but it does work.

If you create a new table called "ScriptUse" and make fields IDNum (autonum), scriptname (txt), dateused (creation date), then you can put a series of steps in EACH of your existing scripts.

The steps essentially write a new record in "ScriptUse" with the name of the scripts captured from 'Insert calculated result: Get(scriptname)'. I tried to make this a subscript step and just add THAT to each script, but then it would only get the name of the subscript, not the main one I was trying to track.

I'm certain that somebody more clever than I can improve on this.

Posted

You could make it a sub-script and pass the main script's name to it as the script parameter.

However, such test can only prove that a script is used - not that it isn't.

This topic is 6182 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.