xml grouping
SUPPLIERS
INVOICES
Required:
SUPPLIERS
CURRENCY
INVOICES
‘for-each-group’ to regroup to show the
invoices by currenc, [<?for-each-group:G_INVOICE_NUM;INVOICE_CURRENCY_CODE?>]
- This is
     specifying that we want to create a new group ‘INVOICE_CURRENCY_CODE’
     based on the original ‘G_INVOICE_NUM’
     group.
 - We now have ‘for-each:current-group()’  to refer to the new INVOICE_CURRENCY_CODE
     group we have just created. 
 - Note: we cannot
     refer to the group as INVOICE_CURRENCY_CODE as
     this group is only created at runtime.
 - sum (current-group()/ENT_AMT) for
     the entered amount, again we use the current-group() tag to refer to the
     new ‘INVOICE_CURRENCY_CODE’
     group. 
 
I 
<?for-each:G_VENDOR_NAME?>
<?for-each-group:G_INVOICE_NUM;INVOICE_CURRENCY_CODE?> 
Currency: USD 
 
<?end for-each-group?> 
 | 
  
 ||||||||||||||||||
<?split-by-page-break:?>
<?end for-each?>
-------------
Output
-------------
Currency: EUR 
 
Currency: FIM 
  | 
 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
No comments:
Post a Comment