How to register sub template in xml publisher
Here we will be discuss about How to register sub template in xml publisher. Sub Templates is the new feature of the Oracle Apps xml publisher in which we can register one Template as a Main Template for one Concurrent Program and register other templates as a Sub Templates. but We cannot register each and every template to be register as a Sub template because , If we want to show the outputs in the different templates then we don't need to register any template as a Sub Template but If you have only one layout but in this single template you want flexibility to add new layouts based on the some condition then need to register the other templates as a Sub template so that you can call these template in the Main template of the Concurrent Program. sub template in xml publisher only uses when we want to merge this template to some another Main template of the same concurrent program.
Steps to register sub template in xml publisher
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"
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?>
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
1 comments:
getting warning while submit calling the sub template in main template
Post a Comment