How to create a sub-template and call it from Primary Templates

Sub-Templates in oracle applications are re-usable templates across multiple primary templates. This will help programmers to reduce development time & provides modular design to build a complex project.

Primary Templates are the actual/original templates containing reporting data for oracle applications.


How to create a Sub-Template?
  • Create a RTF file with common components / layouts /processing instructions. This is called sub-template
  • You can define multiple common components in a single sub-template by using following syntax,

<?template:template_name?> <?end template?>

          where template_name is the name you choose for the sub-template.
  • Register RTF template in oracle applications and mark as "Sub-Template". Set Sub-Template field value = 'Yes'

How to call it from a primary template?

Use below import command to include sub-template into the calling template
     <?import:xdo://Application.SubTemplateName.Language.Territory?>

Then, use following syntax to call the sub-template common components,
     <?call-template:CompanyName?>



Comments

Popular posts from this blog

Query to get FSG report details with row/column set

How to use lexical parameters in Data template (XML document) R12

Sub Inventory Transfer API.