This discussion is archived
2 Replies Latest reply: Aug 6, 2013 12:50 AM by Shanku Banerjee RSS

XML SubTemplate Upload

Shanku Banerjee Newbie
Currently Being Moderated

Hi,

 

My Appl version is 12.1.3.

 

I created a Maintemplate.rtf and a SubTemplate.rtf. I am calling the SubTemplate inside the main template. I used the below commands

 

<?import:file:///C:/Template/Subtemplate.rtf?>

<?call:header?>


It works fine.


Now I want to launch the report from oracle Apps.

1. Create a 'XML' concurrent program

2. Attached to a RG

3. In XML Publisher responsibility, created a data definition

4. During template creation, I select Subtemplate = 'Yes' --Not sure if this is needed to associate a Subtemplate

5. I uploaded the Main template.rtf


6. My question is -- How and where to upload the Subtemplate from XML Publisher responsibility.


I understand that I need to place it somewhere and then use the below sytanx to link it.

<?import:xdo://OKC.OKCTCINC.en.00/?>


Where and how to upload the Sub Template?

  • 1. Re: XML SubTemplate Upload
    Shanku Banerjee Newbie
    Currently Being Moderated

    I can place the rtf under $xdo_top and call the full_path/Subtemplate.rtf , but when I migrate to another instance, I have to change this path. Any way to make it dynamic?

  • 2. Re: XML SubTemplate Upload
    Shanku Banerjee Newbie
    Currently Being Moderated

    Ok it's clear now.

     

     

    Create a SubTemplate from XML Publisher responsibility . It is similar to creating any other template, only the SubTemplate poplist should have value 'Yes'.

     

    Then upload the subTemplate.rtf .

     

    Then in the primary template call it :

    <?import:xdo://AR.XX_SUB.en.00?>

     

    1. AR - Short Name of the SubTemplate Application
    2. XX_SUB - Code of the SubTemplate
    3. en - Language of SubTemplate
    4. 00 - territory of the SubTemplate. If nothing is given (while creating subTemplate) , you can pass 00

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points