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.

Calculated fields based on other tables

Featured Replies

  • Newbies

Hello,

I'm currently rebuilding my FM 5.5 application to get familiarized with FM 7. The separation model appeals to me so I'm trying to keep the tables in one (data) file and all layouts, relations, scripts etc in another (layout) file. However, I have some calculated fields based on other tables and I can't figure out how to get them to work without adding relations to the data file.

For example, I have a parent table, INVOICE, with two child tables, LINEITEM and PAYMENTS. In my old solution I had a calculated field, OUTSTANDING, in INVOICE that subtracted LINEITEM amounts from PAYMENTS amounts. The field OUTSTANDING was later used for a value list so that whenever a payment was booked the user could easily find an outstanding invoice to match it with.

Of course I could add some relations to the data file as well but I would really like to take advantage of the separation model so any ideas on a workaround are most welcome.

I have a demo file of a many to many relationship posted in this area. It requires the Troi Text Plug-in which you can download on a trial basis from http://www.troi.com. I have three files Data, Business Rules & Reports, and Interface. All calculations are done in Business Rules & Reports tables. There is a one to one relationship between the Data tables and the Business Rules & Reports tables. There are no tables in the Interface file.

  • Author
  • Newbies

Thank you, I'll try that!

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.