Tuesday 4 December 2018

How to design sub templates in rtf layout

How to design sub templates in rtf layout

Here we will be discussing about How to design sub templates in rtf layout. Sub templates means , In the Parent RTF Template , We are calling Other Sub Templates which will be  merge its Layouts with the Parent Layout. We normally uses the sub templates in rtf layout when we are not using the fixed layout.  This means our Report layout design can be change based on the report inputs  or some condition so in this case we uses the Sub Templates to deign more flexible RTF layouts in the XML publisher. Oracle also supported this sub template concept in the rtf template. Here below is the complete steps for How to design sub templates in rtf layout
 
 

Step by Step to design sub templates in rtf layout

Step1:- First Thing , if we are using any Sub template in the RTF layout for any concurrent program then first we need to  register these sub templates with this  Concurrent Program.
 
Step2:- Go to XML Administrator Responsibility ==> Templates
 
As below register these Sub Template With Sub Template "Yes"
 
How to design sub templates in rtf layout
 
 
Step3:- Now Go to the Main Template RTF layout
 
As below this is the Mail RTF Layout.
 
We are using two Sub templates "INVA_23" and "INVARORE_24" In this Main RTF Layout.
 
But before using Sub template we need to import these template in the Mail RTF template so here below is the syntax for that.
 
 
<?import:xdo://XXINV.INVA_23.en.US?>
 
<?import:xdo://XXINV.INVARORE_24.en.US?>
How to design sub templates in rtf layout
 
 
Step4:- After Importing the Template We need to Call these Templates so Here below is the Syntax for that. If any condition is True then Call XXSUBTEMPLATE1 else XXSUBTEMPLATE2 as above
 
<?:condition1='True'?><?call-template:XXSUBTEMPLATE1?><?END IF?>
<?:condition1='False'?><?call-template:XXSUBTEMPLATE2?><?END IF?>
 
XXSUBTEMPLATE1 & XXSUBTEMPLATE2 are the Names of XML Bursting
Step5:-
We need to design the Sub template RTF design between these Below XML Tags as below
 
<?TEMPLATE:XXSUBTEMPLATE1?>
Sub Template Design Layout
 
<?END TEMPLATE?>
 
Sub Template 1
 
How to design sub templates in rtf layout
 
 
 
Sub Template 2
 
How to design sub templates in rtf layout
 
 
How to design sub templates in rtf layout
 
 
 

1 comments:

John smith said...

Thanks for sharing this awesome article on Report template design

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *