Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Update of all script instances through database


Go to solution Solved by bcooney,

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

Recommended Posts

  • Newbies
Posted

Hi there!

Goal:  Search and replace in all scripts, database-wide, a particular phrase.
Example: Find every instance of 'Go to Layout ["Edit Clients" (Clients) ; Animation: None ]' and replace it with 'Go to Layout ["Edit Clients_New" (Clients) ; Animation: None]'

Description:

With the advent of server-side sorting, and knowing that it doesn't work (for some reason) on 'Classic' layout types, I've been migrating some layouts across to different types. I've been happy with the performance improvements. 

Here's my dilemma. Some layouts are called through various scripts, and on various single-script-step buttons on layouts. If I move to a new layout using a different layout type, then the reference to that layout has to change in ALL scripts, and all single-script-step buttons. Just to clarify, simply changing the layout type in the design does NOT implement server side sorting, it has to be a NEW layout that starts with a non-'Classic' type. I've tested this and found it to be true.

What I'm looking for here is a way to search through ALL scripts, essentially a Find and Replace type function. I have had no luck finding such a function, or even a way to export all scripts to at least search for the instances I could manually change. The only way seems to be to cycle through each script individually. That doesn't account for any single-script-step buttons, but that's another issue I guess.

Thanks!

  • Newbies
Posted

Ok I might have answered my own question here - at least a workaround for it anyway. 'Database Design Report' under 'Tools' will export everything to an HTML file. In there, you can search for all instances. Not as elegant as a 'Find and Replace' in all scripts in the Script Workspace, so if someone has a solution for that it would be most welcome. 

This topic is 872 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.