jeffdsn Posted March 30, 2008 Share Posted March 30, 2008 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 More sharing options...
David Head Posted March 30, 2008 Share Posted March 30, 2008 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 More sharing options...
jeffdsn Posted March 31, 2008 Author Share Posted March 31, 2008 Thank you for your reply, David. I have made the feature request to Filemaker.smiley_cool Link to comment Share on other sites More sharing options...
Techphan Posted April 15, 2008 Share Posted April 15, 2008 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 More sharing options...
David Head Posted April 15, 2008 Share Posted April 15, 2008 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 More sharing options...
Recommended Posts