Monday, August 21, 2017

RTF Template : Working with variables

Define Constant Variable
This variable remains constant for entire file


Assigning Group/Repeating Frame to Variable

Here DocumentPayable is a Group which is assigned to variable inner_group. So we can loop through this variable as below

Here you can also get total records in a group anytime using count($inner_group)

Incrementing Variable in Loop
Declare variable before loop and increment it inside loop as below



However, this variable is not referenced using $ symbol

Printing Variable ValueThe "xsl:value-of" element can be used to select the value of an XML element and add it to the output



No comments:

Post a Comment