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.

Featured Replies

I have added a calculation field to my layout. It works fine on all new records, but I need it to update all previous records.

Pray tell how is this done?

Hopefully this is the right forum for this.

Addendum: If you have added true calculation fields, they should work also for the existing records.

I see you're using version 7. If you haven't done so, update to 7.0v2. One the bugs it specifically fixed was a problem with constant calculations not calculating.

  • Author

I have done the update, thanks for that info.

However possibly I am not making my self clear. I have changed a layout, adding a calculated field. Bringing two text fields together. All new records, when placing text into the fields, yields the correct calculated field. However all the current existing records are not updated. How do I "push" FMP to look at all the existing records and cause the calculation to happen.

Thanks again

Are you using a true calculated field or are using an auto-enter by calculation.

  • Author

My calculation is: Trim ( Brand )&" "&Trim (Name)

But what is the field type? "Text"? "Number"? Or is it "Calculation"? Because if the field type listed in the Field Definitions dialog is not "Calculation", you're barking up the wrong tree as RalphL suggests. See attachment for clarification.

Jerry

FieldDef.jpg

  • Author

It is an auto enter calculation-replaces existing values. Since there are no existing values I need it to somehow go back to all 300 records and perform the calculation.

Then reproduce your auto-enter calculation in a Replace Contents command. You can easily script it if it's something you need to do periodically.

J

  • Author

Ahhh, a Pittsburger-my original/and still is hometown. Sure do miss it.

Now to business. I understand the concept of what you are saying, but your "easily script it" comment is the problem. I have been looking for scripting books and such, and cannot find anything. I am not sure which way to go, to learn....I need a book or something.

Well, if this is the only step you want to do, create a new script. Double-click "Replace Contents" on the left side, then set the options for the step below.

It sounds like you do not need to script it, though; i am guessing you created the auto-enter calc after entering many records and now want the previous ones to "catch up" with the others. If this is the case, forget the script. Click into your field, select "Replace Contents" from the Records menu, select "Replace with calculated result", then enter your desired calculation and execute the replace.

Hope dis helps yinz aht 'n'at. smile.gif

J

  • Author

THANK YOU!!! That is what I have been looking for. The day starts out great!

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.