current group in rtf template : for-each-group:current-group()
Hi friends, We are going to discuss about the current group in rtf template. We will try to explain the purpose of current group in rtf template. current group used in rtf template when we are trying to create the new grouping the rtf template as per our data presentation requirement. We do use current group in rtf template when we don't want to disturb the report group or xml data template grouping in the code itself but we want to make or change the grouping the rtf template itself. We do use the for-each-group:current-group() to refer the current record based on for-each-group criteria. Here below we will share you the sample example in which we will try to create the new group in rtf template and then try to use the current group for-each-group:current-group() in rtf template. Please find below the more detail about current group in rtf template and for-each-group:current-group() in rtf template.
Steps to use the current group in rtf template
Step 1:- Here we are trying to show one business example in which , we will try to create groups and then use the current group( for-each-group:current-group() ) in rtf template .
Step 2:-
Step 2:- Here below is the RTF template for this above xml in single group.
current group in rtf template : for-each-group:current-group() |
RTF Template after opening the tags.
current group in rtf template : for-each-group:current-group() |
Step 3:-
Here below is the output of this above xml and rtf template.
Now we want to group by this RTF template interms of supplier , but we don't want to change the report data groups. We want to create the new group in the RTF template itself.
current group in rtf template : for-each-group:current-group() |
Now we want to group by this RTF template interms of supplier , but we don't want to change the report data groups. We want to create the new group in the RTF template itself.
Here below is the syntax i have used to Group by new columns in rtf Template and to create new grouping in the template itself.
<?for-each-group:G_INV_REPORT;./SUPPLIER?>
<?for-each:current-group()?> and <end for-each?> is refer for current record based on for-each-group criteria
current group in rtf template : for-each-group:current-group() |
Step 5:-
Here below is the new output after the new grouping in the rtf template.
current group in rtf template : for-each-group:current-group() |
Step 6:- Here below is the syntax to create Group by multiple columns in rtf Template. I am sharing the rtf template overview after this multiple columns group by change .
current group in rtf template : for-each-group:current-group() |
0 comments:
Post a Comment