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.

Replacing fields value in a large DB

Featured Replies

I have a script that uses The "replace content field" step to blank out a field content in a large database. Sometimes the replace content step takes a long time when records reach several thousands... Does anyone know a more efficient way to blank-out the content of a field in a large database?

Thks

Needing to do this is quite unusual and suggests a flaw in your structure. Can you describe why you need to do this?

And, yes, Replace is probably the fastest way to set a field to empty. However, it will skip any record that is locked.

  • Author

Yes. I realized that it is unusual to use the replace field... However, in this situation I am using an external function that sets either a 1 or 0 base on the record parameters.. The problem is that the external function works dynamically so not every time a record parameter would produce a 1 or a 0 that is why I need to blank the record. and I need to save the field content because it is a foreign key in a relationship, so I cannot use it as a calculation.

That's not enough details for me.

Couldn't you use a onRecordCommit trigger to set a stored field to the unstored?

Use applescript. I think this should blaze through it. Just open up the layout with the record set in question and run this from the applescript complier or from run applescript script step. Note the syntax isn't tabbed like it should be when compiled. let me know what happens.

tell application "FileMaker Pro"

tell every record of table "TABLE NAME HERE" of database "DATABASE NAME HERE"

set cell "FIELD NAME HERE" to ""

end tell

end tell

Edited by Guest

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.