Jump to content
Server Maintenance This Week. ×

Global Variable is not working correctly


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

Recommended Posts

  • Newbies

In my file I have two related tables and 5 unrelated tables.  I have 5 layouts.  In the header I use: <<$$Title>>: <<$$LayoutName>> to display the script results.  The scripts are

1. Set Variable [$$Title; Value: Get(FileName)]  

And

2. Set Variable [$$LayoutName; Value: Get(LayoutName)] 

Both scripts are combined into a single script that is triggered when "Entering" the layout.

The problem: Some layouts return the Layout Name incorrectly.  eg. Layout = Futures Studies returns Futures  and Layout = Contract Information  returns Contract.

 

Thoughts?

Link to comment
Share on other sites

Are you sure the text object is wide enough to show the entire text?

--
Note that all Get() functions can be placed on a layout directly: in your example, you could replace:

<<$$Title>>: <<$$LayoutName>>

with:

{{FileName}}: {{LayoutName}}

and do away with the script and the script trigger.

 

Link to comment
Share on other sites

  • Newbies

Problem Solved: I needed to expand the text box to show "All" of the information.

6 hours ago, comment said:

Are you sure the text object is wide enough to show the entire text?

--
Note that all Get() functions can be placed on a layout directly: in your example, you could replace:

<<$$Title>>: <<$$LayoutName>>

with:

{{FileName}}: {{LayoutName}}

and do away with the script and the script trigger.

 

I like your recommendation, AND the solution to the initial problem.  Thank you.  Problem Solved.

Link to comment
Share on other sites

This topic is 1556 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.