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.

Possible to display global variables on a layout?

Featured Replies

Hi, all.

I'd like to be able to display some global variables on a layout. I couldn't find any reference to doing that in the documentation.

I know I can watch what happens to my variables with the Data Viewer, but I would have some need for a more permanent display of that information...

Move them into some table?...

Thanks!

You can place script or global variables in a global text field from your script. The global text doesn't need to be related to your current table at all ... you can set the value from anywhere. And you can display the global on any layout in any table. You would use something like:

Set Variable [ $CustomerID ; Value: CustomerID ]

Set Field [ anyTable::anyGlobalText ; $CustomerID ]

... or whatever you need. If it is just for display, turn off 'Allow Entry in Browse' from field format. You can also set a global variable ($$variable) at file startup (and use it in a calculation) and it will maintain its value for the length of the session.

LaRetta

  • Author

OK, LaRetta. Thanks for the response.

I was hoping that I might have overlooked some "direct" way of displaying those variables.

But your suggestion is a quite acceptable way of doing it.

Thanks for the suggestion!

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.