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.

Replace Field Contents by Name

Featured Replies

The ability to modify a particular field based on a calculation is great, but if you then want to transfer that value to all the records in the found set you still have to hard code the field you want modified.

  • 2 weeks later...

Seriously! Having to loop over a bunch of records to set the same field in each to a particular value is silly.

Also its silly that we have to hard code relationships into our relationship graphs when they may be used only sporadically in a script or a value list. My relationship graphs soon start to look like circuit boards when the core relationships are quite simple. If we could define relationships programatically, e.g. in a script or function, then we could leave the relationship graph for the heavy lifting.

Having to loop over a bunch of records to set the same field in each to a particular value is silly.

He's complaining that Replace requires a selected field, rather than allowing you to specify the field by calc. He's not complaining that he must use a loop. However, Replace isn't very multi-user friendly, so a loop is necessary if you are concerned about record lock or are attempting any sort of transactional scripting.

If we could define relationships programatically, e.g. in a script or function, then we could leave the relationship graph for the heavy lifting.

This is a nice idea. It reminds me a bit of Ray Cologon's discussion of utility relationships.

  • 4 weeks later...

Let me try that again....

I guess an alternative to 'Replace', that does not need to be hard-coded, is 'Set Field by Name'. However, the latter requires one to loop over all of the records in the found set, which seems rather silly.

Did I get it right this time?

"requires one to loop over all of the records in the found set, which seems rather silly. "

Silly? Almost necessary in a multi-user environment.

I guess an alternative to 'Replace', that does not need to be hard-coded, is 'Set Field by Name'.

It's not the only alternative: you could also select the field (assuming it's on the layout), either by looping among the fields or by going to object - then call Replace Field Contents[] without specifying the field.

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.