IBM Support

Variables are rendering incorrectly as their default values

Technote (troubleshooting)


When you include a variable in a JavaScript code element, and the JavaScript cannot be completed during document generation for any reason, the variable evaluates to its default value.


When a template contains incorrect JavaScript, the document generation might not run correctly. The output will still be generated, but if there are variables used in the JavaScript, you might notice issues with the content or formatting of the output. When the JavaScript used in a JavaScript code element is incorrect, the value for any variable contained within that JavaScript expression reverts to its default value, even if no changes were made to that variable. This issue causes all subsequent calculations made by Rational Publishing Engine to use the default value instead of the value that the variable should have had after the JavaScript execution, which results in an incorrect report.

Resolving the problem

In the output, when you see that variables are returned incorrectly as their default values, fix any JavaScript issues that might have occurred before addressing the issue with the variable. Fixing the JavaScript issues might also fix the variable issues.

Document information

More support for: Rational Publishing Engine
General Information

Software version: 1.2

Operating system(s): Linux, Windows

Reference #: 1628001

Modified date: 21 March 2013

Translate this page: