Calling a subtemplate

I have defined the following as a subtemplate to be called by the master template:
<xml:template name="formatting">
<FORMATTING>
<?if:normalize-space(.)= 'ASSETS'?>
<xsl:attribute xdofo:ctx="block" name="font-weight">bold</xsl:attribute>
<?end if?>
<?if:normalize-space(.)= 'TOTAL ASSETS'?>
<xsl:attribute xdofo:ctx="block" name="font-weight">bold</xsl:attribute>
<?end if?>
</FORMATTING>
I have then used the following syntax in my master template:
<?for-each:fsg:RptLine?><?split-column-data:fsg:RptCell?><?value-of:.?><?import: file:///C:\formatting.xml?>
When testing this I am getting the following message when I try to preview with template builder
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\rxp0\Desktop\prod.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:514)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:192)
     at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
     at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1535)
     at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:925)
     at RTF2PDF.runRTFto(RTF2PDF.java:590)
     at RTF2PDF.runXDO(RTF2PDF.java:443)
     at RTF2PDF.main(RTF2PDF.java:237)
Caused by: oracle.xdo.parser.v2.XMLParseException: Whitespace required.
     at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:782)
     at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:564)
     ... 15 more
Thanks for any help

Tim,
I am able to successfully call this from within the master template with the following command - <?import: file:///C:\formatting.xml?>. My problem is that the sub template is not doing what I want. Below is the syntax that I currently have in my sub template. As you can see I am very new to doing this.... If you could point me in the right direction I would be VERY grateful.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
<xsl:template name="formatting.xml">
<?if RowName='ASSETS'?>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<?end if?>
</xsl:template>
</xsl:stylesheet>
I took a look at some of the other templates in XML Publisher to see if there was something similar to what I want to do and to use to become familiar with syntax, but do not know which would be a good one to use. If you could let me know that would be helpful.
Several other questions that I have are:
* Once I have this sub template defined do I include this call in the Report Data field or should I create another field on my template in which to call this from?
* The other formatting that I want to do with this FSG template is on the column footers within FSG I have used the = sign to give a double underline. This presentation is not very nice when printed and I would like to be able to use Word's double underline function to replace this = sign. Will that be possible within a sub template?
Thanks
Ruth

Similar Messages

  • Calling a subtemplate in EBS and passing parameters.

    Hi All,
    This question refers to a similiar post on the XML blog a while ago (http://blogs.oracle.com/xmlpublisher/2006/04/11). I have created my template and subtemplate as shown below, but receive the below error at runtime. If I remove "<?$ReportName?>" from my sub template, the output is created without error.
    SUB-TEMPLATE
    <?template:Header?><?param:ReportName;string('My Report')?>     
    CompanyName <?$ReportName?> Report Date: 6.6.2006<?end header?>
    TEMPLATE
    -----header section
    <?call@inlines:Header?>
    <?with-param:ReportName;string(‘Employee Template’)?>
    <?end call?>
    -----end header;begin body
    <?import:xdo://ONT.SUBTEMPLATE1.en.US?>
    ERROR STACK
    Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: 'ReportName'.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more
    So...1) What about this code is incorrect? I think I copied it exactly from the example in the blog

    Hi
    I have just done a quick test to see if there is anything weird about this.
    Here is what I did...
    CREATE TABLE testypie
    (col1 VARCHAR2(100),
    col2 VARCHAR2(100));I then created a standard tabular form using the wizard and a region source of
    SELECT *
    FROM empI then created a PL/SQL page process with a source of this...
    BEGIN
    FOR i IN APEX_APPLICATION.G_F02.COUNT..APEX_APPLICATION.G_F02.COUNT
    LOOP
    INSERT INTO testypie
    (col1, col2)
    VALUES
    (APEX_APPLICATION.G_F03(i),APEX_APPLICATION.G_F04(i));
    END LOOP;
    END;This worked fine and inserted the correct values (the ones I had just added).
    What am I missing?
    Cheers
    Ben

  • Calling subtemplate in main template based on dummy parameter

    Hi Gurus,
    Basically i want the PO with Terms and conditions for each PO if the dummy parameter is "Y".Otherwise I need to hide the terms and conditions.
    So i have created Subtemplate for Terms and conditions.
    <?template:My_Subtemplate?> at the top
    <?end template?>
    I'm trying to call the subtemplate which is registered under template manager to the main templates data definition with subtemplate as "Yes".
    Here are the steps followed on the main template:
    1) import statement on main template
    <?import:xdo://PO.PO_Subtemplate.en.US/?>
    <?if:$P_T_C=’Y’?>
    <?start:body?>
    <?call-template:My_Subtemplate?>
    <?end:body?>
    <?end if?>
    <?if:$P_T_C=’N’?>
    <?start:body?>
    .........main template goes here
    <?end:body?>
    <?end if?>
    When i run the report, I'm not able to see the subtemplate for dummy parameter as 'Y'. I'm seeing blank.
    Is there anything i need to do here?
    Mallik

    Your jquery is trying to add data by calling a function. Also, you're just getting the value of the parameter. There's not a key to trigger anything on your server-side script. Make sure real_news.asp is processing correctly, looking for key (some-key) AND value (tlink). You might want to simply try concatenating the value of the var like this though:
    <script>
    var tlink = window.location.search.substring(1);
    $('document').ready(function() {
    $("#mydiv").load("real_news.asp?some-key=" + tlink);
    </script>
    Another way you could do it is use server side scripting to look and see if the URL-PARAM is set and if it is then echo value of URL-PARAM into load() method. php example below. I'm sure you can find an asp equivalent to achieve the same result. I think the key (pun) to this problem is that you do not have a key to associate the value with in order to process anything.
    <script>
    <?php if (isset($_GET['URL-PARAM'])) { ?>
    $('document').ready(function() {
    $("#mydiv").load("real_news.asp?some-key=<?php echo $_GET['URL-PARAM']; ?>");
    <?php }else{ ?>
    alert ("there is no ?URL-PARAM=something in the URL!!!");
    <?php } ?>
    </script>
    best,
    Shocker

  • Problem calling subtemplate outside the catlog

    Hi
    I am trying to call subtemplate thats is outside the catlog and on different server
    i am using the following syntax but when when i run the report i am getting blank page
    <?import:http//db01:8012/home/reports/faces/images/subtemplate.rtf?>
    is the abover syntax is correct or what is the procedure i have to follow i have seen the documentation too .
    Thanks in Advance.

    Hi All,
    I am also facing the issue with sub template calling, my problem is i have two Templates and both are registered in the XML Publisher, like Template1(Main Template) and Template2(Sub Template) but while the report main template not pulling the sub template, pls check the below syntax
    Main Template:Template1
    in this template i am using the below code.
    <?import:xdo:// VEL.TESTPOXPRPOP.en.US?>
    <?call-template: VCANXXPOXPRPOP?>
    <?import:xdo:// VEL.TESTPOXPRPOP.en.US?>
    VEL - CustomTOP
    TESTPOXPRPOP - Shortcode of Template
    en - language
    US- Teritory
    <?call-template: VCANXXPOXPRPOP?>
    from the above syntax i am calling the Subtemplate inner data, please see the sub template details below
    Sub Temlplate: Template2
    in this template i am using the below code.
    <?template: VCANXXPOXPRPOP?>
    Hello Welcome to Oracle World
    <?end template?>
    Please advice me whether i am going on right way are not that syntax everything correct or not.
    Thanks in Advance.

  • Calling Subtemplate with passed in variable

    Just wondering how to call a subtemplate with a parameter that is passed in to the rtf, like this:
    main template:
    <?param@begin:P_ORG_ID?>
    This is my main template. I have stuff here....
    Call subtemplate:
    <?call@inlines:Header?>
    <?with-param:Org;$P_ORG_ID?>
    <?end call?>
    Question is how to pass the P_ORG_ID to the subtemplate. The way I have listed above does not work, its blank in the subtemplate.

    Passing parameter to a subtemplate
    Above link has all the info.

  • Dynamic SubTemplate Selection

    Hi,
    Is it possible to invoke subtemplate Dynamically.
    Ex: Assume my subtemplate looks like
    <?template:Header?>
    From Sub Template Header
    <?end template?>
    <?template:Footer?>
    From Sub Template Footer
    <?end template?>
    From Main Template we call this subtemplate as
    <?call-template:Header?> --- Here "Header" is the template name
    To display foooter we use <?call-template:Footer?>
    In this scenario we are hardcoding the Templatenames(Header,footer). Instead i want to send this template name dynamically.
    like,
    <?call-template:Pick This value dynamically?>
    Is it possible to do this?
    Thanks in advance.

    Hi,
    I agree with your statement that we can use If statement. But in this case also we have to hardcode subtemplate name . ( My requirement is I want this value dynamically).
    I have one kind of requirement. We have around 200 kind of templates.
    assume one template contains company details, one for customer details, one for product details, one for T&C and etc....
    Based on the incoming request we have to invoke multiple templates... some times it may be 5 , some time it may be 6, etc..(We are not sure the number of templates and also SEQUENCE in which these templates need to be called).
    If i merge all these outputs then only it forms me the final document.
    As a normal scenarion if i have to use 5 tempaltes , i have to submit 5 concurrent programs (one for one template) and once all output files are generated i have club them(usin PDF merger) and send the final document.
    So i thought of using subtemplate concept. My Main template is a dummy template , which will have simply one "import" statement and one "call-template".
    Which sub-template it should call comes via XML file. (i.e. dynamically passing the subtemplate deails).
    If we can pass subtemplate name dynamically, we can increase the report performance, also no need to submit multiple programs. And also we don't need to write seperate program(PDF merger) to club all these output documents to generate one final document.
    Any inputs / workarounds are highly appreciated..

  • Subtemplate not functioning correctly

    Hi,
    There are 2 pages in a report.My requirement is
    1. to show Company logo and some text(say,name of the report) in the header of first page.
    2. Depending upon whether the employee is part time or full time , in the 2nd page, data (again some text specific to the part time or full time) should be displayed.
    I have used a subtemplate to capture this. I have used seperate sections in the subtemplate for part time , full time and the header. I then call the subtemplate in the main template in the respective location using the import command and call template. i.e. section 'header' in the header of main template and the part time and full time sections in the 2nd page.
    But when I run the report it shows blank whereever i have called the subtemplate.I have also used a seperate section in the same subtemplate for only logo to be displayed in the body of the report in main template and this works fine.
    The command that i use to import and call the template are as below:
    <?import:psxmlp://WMS_HRPD_CNRT_TEMP_1?> in the main template.
    in the header i use <?call-template:header?>
    I have used an IF condition for the type of employee and a place holder for the employee type and the code is written in the properties -> Add help text.
    <?if: A.full_part_time = 'F'?>
    <?call-template:fulltime?>
    <?else?>
    <?call-template:parttime?>
    <?end if?>
    Please help me on this issue.
    Thanks in advance !
    Ashwini

    Hi, i am doing that, it runs on my pc, but in ebs it does not work.
    i am using oracle reports builder 10g, getting the xml and doing my layout in xml pub desktop.
    I registered the concurrent program in ebs as oracle reports execution method.
    i have 1 data definition - preview data file
    and 2 templates, of which 1 is a sub.
    it completes with warning.....
    i get this error:
    9/7/09 8:56:21 AM OPPServiceThread0 Post-processing request 525025.
    9/7/09 8:56:21 AM 20897:RT525025 Executing post-processing actions for request 525025.
    9/7/09 8:56:21 AM 20897:RT525025 Starting XML Publisher post-processing action.
    9/7/09 8:56:21 AM 20897:RT525025
    Template code: XXFRGPAYTRR
    Template app: XXFRGPAY
    Language: en
    Territory: ZA
    Output type: RTF
    9/7/09 8:56:22 AM UNEXPECTED 20897:RT525025 java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:558)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:228)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
    Caused by: java.io.IOException: Root problem: oracle.apps.xdo.XDOException:No corresponding LOB data found :SELECT L.FILE_DATA FILE_DATA,DBMS_LOB.GETLENGTH(L.FILE_DATA) FILE_LENGTH, L.LANGUAGE LANGUAGE, L.TERRITORY TERRITORY, B.DEFAULT_LANGUAGE DEFAULT_LANGUAGE, B.DEFAULT_TERRITORY DEFAULT_TERRITORY,B.TEMPLATE_TYPE_CODE TEMPLATE_TYPE_CODE, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.START_DATE START_DATE, B.END_DATE END_DATE, B.TEMPLATE_STATUS TEMPLATE_STATUS, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.DS_APP_SHORT_NAME DS_APP_SHORT_NAME, B.DATA_SOURCE_CODE DATA_SOURCE_CODE, L.LOB_TYPE LOB_TYPE FROM XDO_LOBS L, XDO_TEMPLATES_B B WHERE L.APPLICATION_SHORT_NAME= :1 AND L.LOB_CODE = :2 AND L.APPLICATION_SHORT_NAME = B.APPLICATION_SHORT_NAME AND L.LOB_CODE = B.TEMPLATE_CODE AND (L.LOB_TYPE = 'TEMPLATE' OR L.LOB_TYPE = 'MLS_TEMPLATE') AND ( (L.LANGUAGE = :3 AND L.TERRITORY = :4) OR (L.LANGUAGE = :5 AND L.TERRITORY = :6) OR (L.LANGUAGE = :7 AND L.TERRITORY = :8) OR (L.LANGUAGE= B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ))
    at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
    at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
    ... 17 more
    9/7/09 8:56:22 AM 20897:RT525025 Completed post-processing actions for request 525025.
    http://GC 9630K->6180K(13900K), 0.0032940 secs

  • Subtemplate path exception

    Hello Community,
    we are using Oracle Business Intelligence Publisher Release 11g (11.1.1).
    We tried to use Subtemplates for our reports, everything works fine if we are testing it on a local machine.
    But on the server side we receive the error: oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException
    We have read:
    http://download.oracle.com/docs/cd/E17904_01/bi.1111/e13881/T527073T558984.htm#T559124
    and also other sources.
    We tried different path constellations but there is no way.
    Facts:
    1. we created a 'Report RTF Template' - using Word and BIP Desktop
    2. the report works fine in BIP and on a local machine as well
    3. we created a 'RTF Sub Template' using +<?template:template_name?> #template content# <?end template?>+
    3.1 for sure we didnt forgot the "call" tag: +<?call:template_name?>+
    3.2 and yes we did the FO processing configuration property setting "+Disable external references = False+"
    from now on, we tried several ways to get the BIP showing the Subtemplates in the Report:
    *4. we added the import syntax to the RTF template*
    <?import:http://server:port/tplertpdf.rtf?> results in "TargetException"
    <?import:http://server:port/xmlpserver/tplertpdf.rtf?> results in "TargetException"
    <?import:http://server:port/xmlpserver/reports/tplertpdf.rtf?> results in "TargetException"
    *5. we tried to use the BIP Catalog:*
    we created a Sub Template Object in the Catalog and uploaded the 'RTF Sub Template'
    and added the import syntax to the RTF template
    <?import:http://server:port/xmlpserver/tplertpdf.xsb?>
    *6 .we also tried to use the local absolute path:*
    <?import:file:///C:/template/tplertpdf.rtf?> results in "TargetException"
    <?import:file:///C:/template/tplertpdf.rtf?> results in "TargetException"
    <?import:file:///C:/bi_repository/reports/tplertpdf.rtf?> results in "TargetException"
    It seems to work for everyone else and maybe we are blind for a detail - please excuse this after hours of tries, readings and restarts
    Edited by: 881020 on 23.08.2011 05:05
    Edited by: badben on 24.08.2011 03:16

    Hi
    In 11g you have to call subtemplates in bit different way.
    It is the easy way to call subtemplate in 11g
    upload your subtemplate ad type subtemplate to catlog. it will be saved as .xsb when uplaod it as type subtemplate
    and then you can call teh subtemplate from there there isno need place it maulayy on server.
    and the path should be as below .
    <?import:xdoxsl:///Components/test/subtemplate4.xsb?>
    Components is you catlog folder and then sub folder and then your template. and remember keep the subtemplate in the shared directory in catlog.
    make sure folders name in catlog first letter is Capital or not check it properly and give the exact name .
    I hope it helps you.

  • Calling sub template using xsl

    hi -
    I've created a global variable in my rtf and placed it in a placeholder.
    <xsl:variable name="no_of_lines_per_page" select="number(5)"/>
    Now, since there is a requirement that the value for no_of_lines_per_page should differ depending on it's responsibility. So I created a 2 subtemplate:
    1.
    <?template:esp?><xsl:variable name="no_of_lines_per_page" select="number(5)"/><?end template?>
    2.
    <?template:bel?><xsl:variable name="no_of_lines_per_page" select="number(22)"/> <?end template?>
    I was hoping to call those subtemplate depending on what operating unit i'm using. my example code is this:
    <?if:OPERATING_NAME='ESP'?>
    <xsl:call-template name="esp">
    </xsl:call-template>
    But this approach doesn't seem to work. Can someone please help me on how to code this?
    Thank you!

    An xsl variable is not a variable as in PL/SQL, Java, C++, etc.
    http://xml.apache.org/xalan-j/xsltc/xsl_variable_design.html
    Without a better understanding, you may want to use a choose statement when setting the global variable such as (not tested)
    <xsl:variable name="no_of_lines_per_page">
      <xsl:choose>
        <xsl:when test="price &gt; 10">
          <xsl:value-of select="number(5)"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="number(22)"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:variable>I don't work with the tools you are using so just offering a guess.

  • Controlling subtemplate text format (left-center-right justification, font)

    Hello,
    I have several sub templates that we are calling to display different text information and these sub templates are used in multiple format templates (that is the entire idea, right? <g>)
    My problem is in some of my reports I need the text to be center aligned and in some of them I need the text to be left justified, etc...
    I also would like to display the text in different sized fonts as well.
    How can I control my formatting from the driving format template instead of having it inherit the left/center/right justification that is present in my sub templates???
    Thanks in advance for your feedback,
    Scott

    Yes, that is exactly what I think I need to do (override the formatting with commands in the main template).
    I don't know if the possibilities will get that large in my case because for each main format template the formatting will remain constant.
    So I may call a subtemplate from several main format templates but in each main template I will just need to set the alignment and font-size (we use a consistent font type). Perhaps once in awhile I may need to bold something, but that should be about it.
    Please, how is this done exactly? Can you point me toward the XSL command(s) to accomplish this? Or is there something in the plug in I am missing that can accomplish this?
    We have over a dozen reports waiting for this one last tweak now and I am working with the below fo block and in this example it is coming across from the subtemplate LEFT justified (because that is how it is stored in the subtemplate) and we need it to be CENTER justified.
    <fo:table-row>
    <fo:table-cell padding-end="0.0pt" padding-bottom="0.0pt" padding-start="0.0pt" padding-top="0.0pt" vertical-align="top" height="10.8pt" number-columns-spanned="2">
    <fo:block xdofo:xliff-note="ST: azzbillto" padding-bottom="0.0pt" text-align="center" orphans="2" widows="2" padding-top="0.0pt" end-indent="0.0pt" linefeed-treatment="preserve" start-indent="0.0pt" height="0pt">
    <xsl:call-template name="azzcompanyname">
    <xsl:with-param name="azzorg" select="string(.//POH_BILL_TO_LOCATION)"/>
    <xsl:with-param name="_XDOFOPOS" select="$_XDOFOPOS"/>
    <xsl:with-param name="_XDOFOPOS2" select="$_XDOFOPOS2"/>
    <xsl:with-param name="_XDOFOOSTOTAL" select="$_XDOFOOSTOTAL"/>
    <xsl:with-param name="_XDOFOTOTAL" select="$_XDOFOTOTAL"/>
    <xsl:with-param name="_SECTION_NAME" select="$_SECTION_NAME"/>
    </xsl:call-template>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    Any ideas??
    Thanks,
    Scott

  • Help needed - Headers and footers of subtemplates not working.

    Hi,
    I need to call 3 different subtemplates from the main template. Headers and footers of these subtemplates are differenet. When i call these subtemplates headers and footers is not getting displayed.
    Can anyone please suggest how to display the headers and footers of subtemplates when called from another template.
    Thanks.

    Hi,
    Thanks for your reply. Do you mean to call the headers and footers from the main template or in the sub template. I cant call in the main template because the headers and footers are different for each template. I used micrsosoft headers and footers in sub templates. But it didnt work. So created header and footer templates in the sub template and called them from the same sub templates using the call: statements. But when i run the prog am getting the below warning.
    Beginning post-processing of request 35618954 on node DSOTEST6HE at 15-FEB-2010 03:37:41.
    Post-processing of request 35618954 failed at 15-FEB-2010 03:37:42 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Note: am running the running prog from XML Publisher responsinilty and not from BIEE standalone.
    Thanks.

  • Registering a SubTemplate

    When you register a sub template via the template manager, what do you set the data detention too?
    Correct me if I’m wrong, but it seems to be like the DD’s you create are pretty much tied to just one concurrent program.
    So if I want to use my sub-template with an invoice template, do I have to register that sub template with the same data definition my invoice template is associated w/?
    An then if I wanted to use that same sub template with a Sales Order Report, do I have to re-register it again with the data detention the sales order report is tied to?
    Or is there some global Data Definition you can create for your sub-templates, or do sub templates really even need a Data Definition?
    Thanks,
    Jeremy

    Hi Jeremy,
    I have tried it,which one was mentioned clearly in documnet.please gothrough document.Other wise i am copying that information here u can go through....
    Register the Subtemplate RTF File in the Template Manager
    Register the subtemplate RTF file in the Template Manager. To define it as a
    subtemplate, select Subtemplate = YES.
    For more information about the Template Manager, see Creating the Template, page 5-4.
    Enter the Import Syntax in the Primary Template
    Import the subtemplate to the primary template by entering the following syntax in the
    primary template. The import syntax tells the XML Publisher engine where to find the
    subtemplate RTF in the Template Manager. This syntax may be entered anywhere in the
    template prior to the call-template syntax:
    <?import:xdo://APPCODE.TEMPLATE_CODE.lang.TERR?>
    where
    APPCODE is the Application code you assigned to the subtemplate in the Template
    Manager. For example, if you associated this template with the Receivables
    application, enter "AR".
    TEMPLATE_CODE is the template Code you assigned to the subtemplate in the Template
    Manager. For example, AR_CommonComponents.
    lang is the two-letter ISO 639 language code for the template language you specified
    for the subtemplate in the Template Manager (for example, English is "en"). This entry
    must be lowercase.
    TERR is the two-letter ISO 3166 country code for the template territory you specified
    for the subtemplate in the Template Manager (for example, United States of America
    is "US"). This entry must be uppercase.
    Add the call-template Syntax to Your Primary Template
    Use the call-template command to render the contents of the subtemplate in
    specified, as follows:
    <?call-template:template_name?>
    where
    template_name is the name you assigned to the subtemplate in Step 1.
    Example
    In this example, your company address is a fixed string that appears in all your
    templates. Rather than reproduce the string in all your templates, you can place it in one
    subtemplate and reference it from all the others.
    The common components subtemplate will contain the following:
    <?template:MyAddress?>
    R&G Corporation
    500 Marine Parkway
    Redwood Shores, CA 94065
    <?end template?>
    This defines the string in a subtemplate called MyAddress. Save this template as RTF
    and add it to the Template Manager using the following criteria:
    • Application Code: CUSTOM
    • Template Code: COMMONCOMPONENTS
    • Language: English
    • Territory: United States of America
    • Select "Yes" for Subtemplate
    Now this subtemplate and any functions therein can be referenced from any other
    template.
    To call this subtemplate from another template, first import it by inserting the following
    syntax at the top of the calling template:
    <?import:xdo://CUSTOM.COMMONCOMPONENTS.en.US?>
    At the position in the template where you want to display the address, enter:
    <?call-template:MyAddress?>
    At runtime the contents of the MyAddress subtemplate will be fetched and rendered in
    the layout of the calling template.
    This functionality is not limited to just strings, you can insert any valid RTF template
    functionality in a subtemplate, and even pass parameters from one to the other.

  • Different scenario to run Former XML Publisher report

    Hi All.
    I have some different kind of scenario to run the XML Publisher report. Please look into the following scenario and requirements:
    In my current project we are implementing 22 languages like Chinese, Japanese, Spanish etc. Out of these 22 languages, 8 languages will be installed and 14 will be uninstalled. We are defining the language on 2 places: OU level and Address level. For those reports that need to be translated, we are using XML Publisher to achieve this, but we have different scenario to pass the language, in order to select the corresponding template.
    Scenario: As i mentioned we are defining the languages on address level, it is considered that the language defined at the address level will be customer's preferred language and he would like to see the output in that language only. there are 2 possible conditions while running the report: 1. User may select the language in which he want the report to be displayed in. 2. User may not select any language. The 1st scenario can be fulfilled by standard functionality. but in case of second scenario when user does not select any language then we need to display the report in language defined on address level for that customer. For Ex: if the Invoice report is running for 4 invoices and have 2 different customers and their preferred language is different, suppose for 1 customer it is Chinese and for another one it is Japanese. Then we need to display the output in customer's preferred language only i.e for Japanese customer it should be in Japanese and for Chinese customer it should be in Chinese i.e 2 different templates will be applicable.
    So as per this while submitting the concurrent request we need to check whether user has selected the language or not? And after making all the conditions check we will have to submit the xml publisher report using API. Do you have any suggestion how can we achieve this task?
    Please suggest.
    Thanks,
    AS

    Hi AS,
    How about using a conc prog parameter for User selected language, and XML element data at customer level, then call a subtemplate (or multiple embedded regions in the same template) in the required language based on if or case logic in the template.
    Regards,
    Gareth

  • Multiplatform use and import:file

    Hi All,
    We are in the process of implementing bi publisher standalone running on linux and weblogic 9.2. I ran into a issue with developing reports on intel and running them on linux. The issue I'm seeing is that when I use subtemplates in a report "import: file" requires a path to the subtemplates in order to pull in the information. This works fine using a path that includes the root path but when I put in a relative path or url it errors. I was hoping that on generation of the FOTemplate the paths to the subtemplates weren't need but the information was pulled in. It seems that it still pulls the information at runtime from the subtemplates. If anyone has seen a away around this I'd would be forever greatful.
    thanks,
    Matt

    Hi Tim,
    Thanks for the response. I did find a away around this by making sure the network path is accessable in the same way ie \\networkdirectory\template.rtf in both unix an intel, and if I use //networkdirectory/template.rtf in the template to call the subtemplate it will work. So, the full call would be <?import:file:////networkdirectory/template.rtf?> I not sure what the overhead is to get these files from the network versus embedding them in the generated template but it may be something oracle may want to consider to remove the dependency of these files in the future( after initial generation).
    thanks again,
    Matt

  • Unable to call subtemplate (24 pages) in EBS

    Hi All,
    I have a big template with 26 pages and size is 45MB. First i tried to load this template into EBS template but got error. Then i created two template from this, one main template with first two pages and other subtemplate with rest of 24 pages.
    I successfully loaded main template into EBS and moved subtemplate into EBS unix box.
    Now i am calling subtemplate into main template using import command.
    <?import:http://myserver:8006/xmlptemp/xml_WelPkg_SubTemplate.rtf?>
    <?call:SubTemplate?>
    <?end call?>
    Then i am getting error:
    java.lang.NullPointerException at oracle.apps.xdo.oa.util.CoreHelper.escapeBrackets(CoreHelper.java:549) at oracle.apps.xdo.oa.util.CoreHelper.getExceptionXML(CoreHelper.java:580) at oracle.apps.xdo.oa.util.CoreHelper.writeExceptionDocument(CoreHelper.java:661) at oracle.apps.xdo.oa.util.CoreHelper.writeExceptionDocument(CoreHelper.java:637) at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:6205) at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3555) at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614) at oracle.apps.xdo.oa.template.server.TemplatesAMImpl.processTemplate(TemplatesAMImpl.java:2135) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:189) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721) at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.previewTemplate(TemplateGeneralCO.java:741) at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.processRequest(TemplateGeneralCO.java:158) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353) at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162) at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187) at oa_html._OA._jspService(_OA.java:98) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534)
    If i ran same main template from my PC using MS word template builder then i am getting report output without any error.
    If i remove 23 pages from the subtemplate and keep 1 or 2 pages, move into EBS unix box then i am getting report output from EBS.
    This is a service contract welcome package report so i can not reduce number of pages.
    I am using 5.6.2 version on EBS
    Could any one tell me solution for this.
    Thanks
    Ravi
    null

    Hi Tim,
    Thanks for quick responce.
    I am trying to send you zip file (4 MB) but every time i am getting back with error (I'm afraid I wasn't able to deliver your message to the following
    addresses.
    This is a permanent error; I've given up. Sorry it didn't work out)
    Could you please tell me other way?
    Thanks
    Ravi

Maybe you are looking for

  • HR-ABAP

    Hi I have done HR  reports,but i didnt use logical databases. I used HR tables,results table,technical wage types and displayed output. Is it mandatory to use Logical databases?what is PNP and PNCP? where do we use these PNP and PNCP?in se37?or in pr

  • ICloud with Outlook 2013 on Windows 8

    Hi Seen various threads on this but nothing definitive. I have Outlook 2013 installed on Windows 8 and have also downloaded the iCloud Control Panel. Calendar & Contacts seems to be ok (all sync up nicely) but with mail I have 2 issues; 1) The iCloud

  • Client API generation from WSDL.

    Hi, Could any one guide as how to generate the client from WSDL? I am using RAD7/Eclipse. When i try to generate it gives below error. Errors occurred during wsimport.   warning: src-resolve.4.2: Error resolving component 'ns1:pagedata'. It was detec

  • Dbms_xmlstore Error stack

    10.2.0.3 fixed a problem with DBMS_XMLSTORE. The error stack in 10.2.0.1 does not show the SQLERRM just a generic ORA-31011. Since XE does not upgrade to 10.2.0.3 has anyone found a way around this for XE 10g.

  • Publish on the wrong page

    Don't know what happened. The page I published was uploaded correctly and I can see them if I login to my .mac a/c, and I find them all on the section of "my pages". But iWeb keep annoucing the link as a old page link which I don't see in the "my pag