Greg Hains Posted September 17, 2008 Posted September 17, 2008 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
Vaughan Posted September 18, 2008 Posted September 18, 2008 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.
Greg Hains Posted September 18, 2008 Author Posted September 18, 2008 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
David Jondreau Posted September 18, 2008 Posted September 18, 2008 An unstored calculation field would work fine. Try it and see.
Greg Hains Posted September 18, 2008 Author Posted September 18, 2008 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
Vaughan Posted September 18, 2008 Posted September 18, 2008 Calculations that use the Get() functions *must* be unstored to work correctly, otherwise their value is never updated.
Lee Smith Posted September 18, 2008 Posted September 18, 2008 Hi Vaughan, You kind of broadstroked that, didn't you. Lee
comment Posted September 18, 2008 Posted September 18, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now