Friday, 8 May 2020

Page Number In RTF Template Reset To 1 For Each Group




Issue:- “Page Number will be a part of footer, however, if the data is taken for ALL invoices at once, page number would not start with 1 again for the new invoice as all invoices would be a part of the same document”.

Expectation:- The expectation is to have the page numbering and the header styling reset for each invoice.

We have a requirement where we have to print All Invoices in one Document and Show page number in the footer but page number should reset at each invoice level.

Suppose we have one document where three invoices are there  suppose 101A invoice,102B Invoice, and 103C Invoice now when we generating a report its Showing 3 pages as 1 2 3 in the footer , But the expectation is page number will reset and  show 1 at each Invoice starting.



Solution Use this tag for starting of Your Group  <?for-each@section:G_INVOICE?>



Default Text Entry Form Field Help Text Description
for-each G_INVOICE <?for-each@section:G_INVOICE?> Begins the G_INVOICE group, and defines the element as a Section. For each occurrence of G_INVOICE, a new section is started.
<?TRX_NUMBER?> N/A Microsoft Word does not support form fields in the header, therefore the placeholder syntax for the TRX_NUMBER element is placed directly in the template.  Page number also repeat at invoice level 
end G_INVOICE <?end for-each?> Closes the G_INVOICE group.
Url For Reference  https://docs.oracle.com/middleware/12212/bip/BIPRD/GUID-B9C4322A-4BBF-4D28-B8F3-435E527EE5E6.htm#BIPRD2541



No comments:

Post a Comment