Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Update of all script instances through database

Featured Replies

  • Newbies

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!

Solved by bcooney

Go to solution
  • Author
  • Newbies

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

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. 

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.