Jump to content

Possible to display global variables on a layout?


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

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This topic is 5658 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
 Share

×
×
  • Create New...

Important Information

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