Newbies bcbc Posted August 29, 2022 Newbies Posted August 29, 2022 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 bcbc Posted August 29, 2022 Author Newbies Posted August 29, 2022 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.
Solution bcooney Posted August 30, 2022 Solution Posted August 30, 2022 Yes, DDR is the answer. Take it farther and use a tool that imports or reads the XML version of the ddr. Such as BaseElements, Inspector Pro or FMPerception. I work with FMPerception open as I develop to answer questions such as this immediately.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now