Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Global Variable on Layout


jeffdsn

Recommended Posts

I have a script that produces local variables and displays the results in a dialog box. If I make the variables in the script global, can the results then be displayed on a layout? Or, can variables created in a script be displayed on a layout without creating a corresponding field in the database to store it?

 

Thank you in advance for any responses..

 

Jeff

Link to comment
Share on other sites

I have a script that produces local variables and displays the results in a dialog box. If I make the variables in the script global, can the results then be displayed on a layout? Or, can variables created in a script be displayed on a layout without creating a corresponding field in the database to store it?

Answers are no and no for any type of script variable, local or global.

 

At present, you need to set a global field to your variable value and display the field on the layout.

 

It would be an excellent feature request. smiley-wink Do it now before you forget.

Link to comment
Share on other sites

  • 3 weeks later...

Maybe I am way over my head on this one... but wouldn't the following workaround accomplish what you are trying to do?

 

 

1) Create a global field (I place most of mine in a table called GLOBAL - a holdover from my DOS Clarion days).

2) Place your GLOBAL::LocalVariable field on the layout of your choice

3) In your script set your GLOBAL::LocalVariable field equal to your $LocalVariable

Link to comment
Share on other sites

That is exactly the point - it is a workaround to display a variable value on a layout - transfer it to a global field and place that field on the layout. The point being made is that it should not be so difficult - why can't we place a variable in a text object (like a merge field) on a layout?

 

Feature request.

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

Terms of Use