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.

Calculate values on the layout

Featured Replies

Hi,

what is a general approach in FM for calculating values without storing them in database? Can I add values from 2 fileds and print a result?

Yes you can do that with button bars.

As Fitch said, the only way to display something on a layout that is not stored in a field or global variable is the use a button bar, since you can display the result of a calculation on the text of the button. You can use any calculation for the text of the button, and it will be updated on screen. You can format the button bar in any way you wish, and you can also make the button do 'Nothing' and not even look like a button. 

  • Author

Thanks rwoods. 

Could you be so kind and provide a basic example within attached file?

example.fmp12

9 hours ago, rwoods said:

As Fitch said, the only way ...

I didn't say it was the only way.

Apologies @Fitch, I did put words into your mouth. As far as I know it is the only way to have FileMaker show a dynamic/changing value on a layout that is not stored in a global or a field.

I think button bars are generally a good way to go, but e.g., merge variables, virtual lists, and web viewers are possibilities.

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.