Script Preview: Tokens on Page

Navigation:  Scripts > Previewing >

Script Preview: Tokens on Page

Previous pageReturn to chapter overviewNext page

When a dated page is selected in the pages and signatures layout, the preview window displays the tokens contained in that GridTemplate, evaluated for the date selected in the calendar above.

 

Coverage

 

The purpose of this preview of the tokens' values is to cover about most of tokens, most of the time. The tokens that are not fully evaluated are very few. Even the following complex types of tokens are fully evaluated: zap tokens, Range tokens, macros tokens in general, and even MiniCalendar tokens (this is similar to the preview of the MiniCalendar Options, but is based specifically on the page and date currently selected).

 

Formatted token results

 

Rich-text-formatted holidays and slogans are fully evaluated, and are denoted by a red triangle in the margin. Click on the token value to display full attributes information, and a larger and possibly more accurate preview in the formatted text preview dialog.

 

Conversion errors

 

If a token conversion error or warning is encountered, the token is highlighted, and placing your mouse over that token displays a hint containing the run-time message.

 

To get more info on the message, simply click on the token which caused the message ([1iMmmm] in the example above) and the Q++Studio Help will open at the corresponding topic.

 

Exclusions

 

The following tokens are not fully evaluated:

 

Macro tokens involving global variables. This is because in the Script Preview, the tokens are evaluated page by page, one page at the time only (when you select a page). Therefore Q++Studio has no notion of what might have happened to global variables in the previous pages. To get accurate preview information for tokens involving macros with global variables, you should use the p-Code Viewer.

SARAs: This is because the SARAs often rely on typographical information in the GridTemplate (such as replace 'xxx' in 12pt Arial) which is not available to Q++Studio.

 

See also: MiniCalendar Preview, formatted text preview, listing messages, viewing p-Code.


Topic 104158 updated on 09-Apr-2019.
Topic URL: https://www.qppstudio.net/webhelp_xv4/index.html?tokenvaluesforselecteddate.htm