How to access the #foreach loop counter
How to access the #foreach loop counter
Use the
$velocityCount
variable reference to access the loop counter. The counter starts at 1.
Book a Presales Call
Are you new to COZYROC and evaluating our solutions?
Book a Presales Call with us now
.
Related Articles
Sample template text to create CSV from DataReader Destination
In the Template Editor dialog, check the 'Remove Newline' parameter. The Current object below implements the standard ADO.NET IDataReader interface. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 #macro( main $reader ) ...
Pass two objects to the Template Task
1 2 3 4 5 #macro( main $list1 $list2 ) ... ... #end #main( $list1 $list2 )
What is the difference between Template Task and Template Component
Template Task have to be used when you would like to generate complex document, with input from multiple data flows. The Template component is recommended when you would like to generate result document, based only on one data flow input columns.
How to access the #foreach loop counter
Use the $velocityCount variable reference to access the loop counter. The counter starts at 1. Last Updated: 4/17/2024
How to access the #foreach loop counter
Use the $velocityCount variable reference to access the loop counter. The counter starts at 1. Last Updated: 4/17/2024