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.

find and replace in found set

Featured Replies

Hi all

 

I'm having some trouble here. I'm trying to get Find and Replace to search for blank fields or positive values within an "order" field, within a found set, and replace those values with "0". Find and Replace is running within a script, and I keep getting the error: 

 

"The Find/Replace Option "Current Field" requires a selected field."

 

Before the Find/Replace is run, I have the script "GoTo Field" called "order". However it's not working.

 

How am I supposed to tell the script what field to Find/Replace in, and what is the calculation that would go in the "Find What" field to find blank or positive values?

 

Thank you!

The currently active field is lost after a Find.

 

Go To Layout

Enter Find Mode

Set Field [ TableOccurrence::Order; "="]

New Record/Request

Set Field [TableOcurrence::Order; ">0"]

Perform Find

Replace Field Contents [No dialog; TableOccurence::Order; "0"]

 

Be careful - Replace is awesome, but getting it wrong can be somewhat disastrous - there is no Undo from this. And this will replace every Order field that is blank or >0 with a 0

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.