How to do Page Level or Carry Forward page level totaling in XMLP?

Oracle Apps Interview QuestionsCategory: XML PublisherHow to do Page Level or Carry Forward page level totaling in XMLP?
Questions Master asked 2 years ago
1 Answers
Shailender Thallam Staff answered 2 years ago

Below is the syntax of the tag to do page level totalings:
<?add-page-total:TotalFieldName;’element’?>
where
TotalFieldName is the name you assign to your total (to reference later) and
element‘ is the XML element field to be totaled.
You can add this syntax to as many fields as you want to total.
 
Then when you want to display the total field, enter the following syntax:
<?show-page-total:TotalFieldName;’Oracle-number-format’?>

where
TotalFieldName is the name you assigned to give the page total field above and
Oracle-number-format is the format you wish to use to for the display, using the Oracle format mask (for example: C9G999D00). 
 
Page level total field does not exist in the XML input data, you must define a variable to hold the value. When you define the variable, you associate it with the element from the XML file that is to be totaled for the page. Once you define total fields, you can also perform additional functions on the data in those fields.