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.

Displaying variables

Featured Replies

Hi.

Im looking to display variables directly onto the screen somehow. I was thinking of putting these variables (get(accountname) etc) into a field, but as the user is multi-user it would not work correctly as each user would override it.

How can I schieve this please?

Cheers,

Greg

If you have FMP Advanced you can see variables in the data viewer.

"I was thinking of putting these variables (get(accountname) etc) into a field, but as the user is multi-user it would not work correctly as each user would override it"

Variables are like global fields; each user has their own values anyway. But Get( AccountName ) isn't a variable; it's a function. It should change for each user.

  • Author

Hi Vaughan,

Thanks for the reply.

I do use the data viewer for debugging and what-not, but need to display some of these variables on the screen for the user for current login name, and other basic system info. I dont think they should have to go into the data viewer.

No way of displaying them as part of a layout?

Greg

An unstored calculation field would work fine.

Try it and see.

  • Author

Hi DJ.

Ok, I'll give that a whirl. Its just the multiuser bit that worries me a bit, but I suppose if it's unstored it shouldnt matter.

Thanks,

Greg

Calculations that use the Get() functions *must* be unstored to work correctly, otherwise their value is never updated.

Hi Vaughan,

You kind of broadstroked that, didn't you.

Lee

Either an unstored calculation field or a global field set by the opening script should work fine. The global field has the advantage of being accessible from unrelated TO's, so you can place it on any layout.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.