Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Displaying variables


This topic is 5911 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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

Posted

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

Posted

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.

This topic is 5911 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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