ForEach Tag Tutorial
12 min
end foreach (deleterow attribute) tutorial when this attribute is set to true, the row containing this tag will not be output in the generated report false default row output normally true all content in this row is not ouput to the final report examples example 1 (deleterow='false') \<foreach>\<out> \</foreach deleterow='false'> example 1 output output from out tag 1 output from out tag 2 example 2 (deleterow='true') \<foreach>\<out> \</foreach deleterow='true'> example 2 output output from out tag 1 output from out tag 2 foreach (order attribute) tutorial the new 'order' attribute allows you to choose between legacy, row major, or column major expansion legacy default foreach functions exactly like the foreach tag in previous versions for backwards compatability will not apply 'deleterow' on its ending foreach row expands each new row of data in a new row column expands each new row of data in a new column examples example 1 (order='row') \<foreach order='row'>\<out> \</foreach deleterow='true'> example 1 output output from out tag 1 output from out tag 2 example 2 (order='column') \<foreach order='column'>\<out> \</foreach deleterow='true'> example 2 output output from out tag 1 output from out tag 2 foreach ('block' attribute) tutorial the new 'block' attribute allows you to expand a foreach in a table without affecting surrounding cells it will attempt to add blank cells as needed to maintain the shape of the table this also allows you to expand foreach tags side by side in the same table block currently only functions to order='row' false default block feature is not used true expands foreach as a block examples example 1 above foreach left of foreach \<foreach block='true'>\<out> right of foreach \</foreach deleterow='true'> below foreach example 1 output above foreach left of foreach output from out tag 1 right of foreach output from out tag 2 below foreach