Monday, 2 July 2018

set variable in rtf template.xdoxslt:set_variable

set variable in rtf template.xdoxslt:set_variable

Set variable is used to declare the variable in the XML publisher reports. When we have a Requirment to use the variable in the XML report then we need to declare the variable first and then initialize with some value. Set variable helps to Declare and initialize the value to the variable in the XML publisher report.

Here below I am sharing the example to set the variable in the RTF Template for XML publisher reports.

 

The variables use a "set and get" approach for assigning, updating, and retrieving values.
Use the following syntax to declare/set a variable value:
 
<?xdoxslt:set_variable($_XDOCTX, 'variable name', value)?>
For Example : <?xdoxslt:set_variable($_XDOCTX, 'V_VAR1',1)?>

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *