Subtemplates

hi,
Is there a way where I can split each record of my dataset query in a different subtemplate and the number of sub-templates should also be generated dynamically based on he number of records fetched.
eg if my dataset quey fetches me 5 records of employee details, then each of these employee details should come in different subtemplates. Also the number of subtemplate generated (here it should be 5) will be decided dynamically.
Please let me know if this is possible in BIP
Thanks in advance

Thanks Gareth for your response. Well, can you suggest any way to achieve this requirement? now that its clear that subtemplates is not a coorect way
eg : my layout is somewhat like this
Emp 1
Name Age ....
Emp 2
Name Age ...
So i need to put individual records returned by the query into different blocks in the template and not as a single table and also deciding runtime the number of blocks. Let me know if his is possible.
Thanks

Similar Messages

  • Subtemplates in RTF templates

    this is a quick one. I can not get a RTF template that includes a subtemplate to run when executed from publisher website by view or by scheduling. I can get it to work just fine in the Word Add on just fine. (preview as rtf command)
    Here are the simple things I am doing (The template actually does nothing)
    <?template:replacenull?>
    <?param:p_value;string('0')?>
    <?param:p_replace;string('-')?>
    BJKLKLKL
    <?end template?>
    And call to template
    <?call@inlines:replacenull?>
    <?end call?>
    Exception I recieve
         at java.lang.Thread.run(Unknown Source)
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    NOTE: there is two spaces between "convert" and "to" this may be a clue of some type.
    Edited by: danscan1712 on Feb 4, 2011 11:24 AM

    I have retried this whole thing from scratch and now it works. I don't know why but i am chalking it up to an errant typo somewhere.

  • Report locale, subtemplates and Data Model

    Hi,
    I have the following situation:
    We have 4 templates according to language, with french the default language:
    - FR: template.rtf
    - NL: template_nl.rtf
    - DE: template_de.rtf
    - EN: template_en.rtf
    The report locale is enough for BI Publisher to select the correct template, so that's OK.
    Some data from our database is also based on locale (eg street names and cities).
    Question 1: is it possible to use the current locale as parameter for the (sql) data model in some way (eg by using a specific parameter name)? For now we set the report locale to the correct language AND we send that same value through as a parameter. It would be cleaner to just set the report locale and be able to use that value in some way.
    Question 2: all of the above templates have a footer that's being reused, each also share the same data model, but the data is again based on the current locale.
    so: footer.rtf, footer_nl.rtf, footer_de.rtf and footer_en.rtf. Do I need to import all of these in their respective files or will localisation work (I doubt it)?
    Question 3: Is there a way to implicitly pass all parameters that were passed to the main template, also pass to the subtemplates? (eg LANG parameter is passed to template_nl.rtf, who can use it in his data model, is there a way to automatically make LANG available for footer_nl.rtf's data model or do I need to explicitly pass it as a parameter in the <?call-template: footer?>) - again if the report locale is available in some way to the data model, it would be easy.
    Thanks in advance

    Hello,
    Probably the easiest would be to use an OnDemand Process and some AJAX to pull your data into the extjs object.
    Here's an example of an OnDemand Process.
    http://apex.oracle.com/pls/otn/f?p=11933:11
    For data the easiest at the moment would be probably to use the Oracle XML functions to generate your data in XML and use that as your data feed.
    You might want to take a look the new Interactive Reports included in APEX 3.1, while extjs has alot of functions there is a bit of setup involved , while the Interactive Reports all you need is a SQL query http://www.oracle.com/technology/products/database/application_express/html/irrs.html
    You should search the forum for extjs as there has been quite a few successful integrations of APEX and extjs / YUI / jQuery etc.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Import a subtemplate in XML PUBLISHER 5.6.2

    Hi, we need to be able to reference subtemplates in our templates in XML Publisher. We were able to test
    successfully on our desktop by using the following command:
    <?import: file:///C:/SousGabarit/Variables/X0050_fr.rtf?>, but we failed after adapting
    the command and deploying to the server.
    We tried many different approaches like the following which didn't work(with the subtemplate in the same directory
    as the template):
    <?import:file://entete.rtf?>
    <?import:file:./entete.rtf?>
    <?import:./entete.rtf?>
    <?import:entete.rtf?>
    This worked:
    <?import:http://p033c:8888/entete.rtf?> since it references an available directory on an application server. But we don't want to specify the
    server and port in all of our templates since moving from one environment to
    the other will mean changing every templates...
    We would like to reference a relative path on the XMLP server. Is it possible to have all the subtemplates
    in a directory which can be referenced in the templates directly on the XMLP
    server?
    What needs to be the import command then?
    Thanks!

    Thanks a lot for your answer Tim.
    I have two questions related to this...
    1- Where do you recommend we put the templates on the server? Ideally we would like the user to go through the application to upload subtemplates as opposed to give access to a folder, but I think we cannot access a subtemplate directly in the reports section of the app with a URL, right?
    2- Where in the documentation can we find the information about the parameters we can use in our templates which come from the application settings, like "CURRENT_SERVER_URL"? Can we also have access to the locale? What are the other parameters available?
    Thanks a lot!
    Pierre-Yves

  • 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

  • SubTemplate call is failing with XML-22002 error

    Hi,
    I am using Oracle BI Publisher 10.1.3.4 in WebLogic Server 10.3.6.0.
    Subtemplate reference is used in some reports. Whn we click on view of such report, below error is shown.
                   "The report cannot be rendered because of an error, please contact the administrator."
    The patch 9017232 is also installed.
    The detailed error log is below:
    [111413_123806333][oracle.apps.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    <Line 3, Column 71>: XML-22002: (Fatal Error) Error while processing include XSL file (xdoxsl:///FCReports/HeaderFooter_LandScape.xsb).
    <Line 78, Column 312>: XML-22008: (Error) Namespace prefix 'ref' used but not declared.
    @Line 3 ==> <xsl:import href="xdoxsl:///FCReports/HeaderFooter_LandScape.xsb"/>
    [111413_123806337][oracle.apps.xdo.template.FOProcessor][EXCEPTION] 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(Unknown Source)
        at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
        at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
        at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
        at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
        at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
        at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
        at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
        at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:91)
        at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
        at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
        at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:554)
        at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:257)
        at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
        at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
        at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:97)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'ref' used but not declared.
        at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
        at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:614)
        ... 38 more
    Syntax used in Report is
    <?import:xdoxsl:///Reports/HeaderFooter_LandScape.xsb?loc=en_US><?call@inlines:Header?><?with-param:PM_REPORT_NAME;string('Customer details report')?><?end call?>
    XDO.CFG file contents
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
       <properties>
          <property name="bursting-multithreading-on">false</property>
          <property name="xdk-secure-io-mode">false</property>
       <property name="xslt-scalable">true</property></properties>
    </config>
    Please suggest whether this issue is with BI report setup.
    Thanks in Advance.
    Regards,
    Bala.

    Hi Surya,
    Would you let us know from where you are calling web service and for what?
    And if possible provide error log as screenshot or txt file. So that it will be easy to trace issue.
    For gland your issue, go through below posts
    Not able to execute MII Transaction as web service
    Error calling BLS Transaction as Web service
    Problem in generating wsdl ?
    Create MII transaction & MII Web Service and consume them in ABAP
    Regards,
    Praveen Reddy

  • XSL-TEXT: how to import subtemplates in XSL and use xdofx tags?

    Hi,
    I am working on a BI Publisher Report (XML Publisher 5.6.3 in EBS) to generate labels on a label printer. The output needs to be in plain text format, therefore I decided to use the XSL-TEXT template and create my own XSL translation.
    In principle this works pretty fine, but there are two things that worry me a bit:
    1. Does anybody know how I could import other XSL files, like sub-templates in RTF? The problem I have is that I don't know the URI or the sub-template. At the moment I store those other XSL files in the OA_MEDIA folder, but this is not really nice. In RFT you can refer to subtemplates with some xdofx commands... this brings me to my second question:
    2. In RTF templates you can use the Oracle specific XML tags, including the <xdofx:%> and <xdoxslt:%> tags. Does anybody know if and how I can use them in XSL templates?
    Any ideas are highly appreciated!
    regards,
    David.

    Hi Vetsrini,
    1. but what is the absolute path for my subtemplates if I store them in the Template Manager? How can I refer to them?
    This is what the manual says for RTFs:
    >
    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.
    >
    sounds good and easy to me. But I don't have a RTF template. I have just a plain XSLT and those XML Publisher tags do not work there. So how do I get the absolute path of my XSLT templates stored in the Template Manager?
    2. I've included the namespace, no error anymore. But the syntax does not result in actions:
    <xsl:value-of select="xdoxslt:substr((PRODUCT_NAME),1,2)"/>
    {code}
    This does not substring() my string, the full string is returned. But anyway, I don't get an error message anymore. Maybe I just used the wrong XDOXSLT function... I need to search for a list of XDOXSLT functions, but that's not very urgent for now. I think I can do the most with plain XSL and inside the DB itself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Issue with using subtemplate in E-Business suite BI Publisher report

    Registered subtemplate in XML Adminstrator and also in main temlate using syntax below
    <?import:xdo://SDS.SDSRAXINVFTF.en.US?>
    and calling subtemplate in main template footer
    <?if:OPER_UNIT=’3217'?> <?call-template: SDSRAXINDFTF?> <?end if?>
    Report output is not showing any output when checked in OPP log it's giving messsage
    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= B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ))
    on checking above sql with template short name getting 2 records
    Let us know if any fix is available for this issue.
    thanks
    Kamalakar

    Registered subtemplate in XML Adminstrator and also in main temlate using syntax below
    <?import:xdo://SDS.SDSRAXINVFTF.en.US?>
    and calling subtemplate in main template footer
    <?if:OPER_UNIT=’3217'?> <?call-template: SDSRAXINDFTF?> <?end if?>
    Report output is not showing any output when checked in OPP log it's giving messsage
    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= B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ))
    on checking above sql with template short name getting 2 records
    Let us know if any fix is available for this issue.
    thanks
    Kamalakar

  • End date the use of a certain subtemplate and call another in its place

    Hi All,
    How can we refer to multiple subtemplates so as to end date the use of certain subtemplate say on Dec 31 2007 and start referring to another subtemplate in its place from Jan 1 2008??
    Any pointers to the same will be extremely helpful.
    Thanks in advance.

    This work, but its hardcoded and not really flexible. You can also change the date format to compare whatever you want I guess. Hope it can help!
    <?import:file:///C:/sub_2007.rtf?>
    <?import:file:///C:/sub_2008.rtf?>
    <xsl:if test="xdoxslt:sysdate('YYYY')='2007'"><?call-template:sub_2007?></xsl:if>
    <xsl:if test="xdoxslt:sysdate('YYYY')='2008'"><?call-template:sub_2008?></xsl:if>

  • 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..

  • 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.rtf in maintemplate.rtf in XML Publisher reports

    Hi,
    I am working on XML Publisher Reports. I have two subtemplate.rtf; based on condition in the maintemplate.rtf, i have to call either of the subtemplate.rtf.
    Doubts:
    1. Do i need to register both subtemplate.rtf in oracle applications? If yes, what could be 'CODE' while registering in oracle applications.
    2. How to use subtemplate.rtf based on condition in the maintemplate.rtf?
    Could i expect a complete process of using subtemplate in main template.
    I am profoundly thankful to any help in advance.
    Thanks.

    Hi ,
    Check the following link may be help ful for u
    http://blogs.oracle.com/xmlpublisher/2008/07/conditional_templates.html
    Thanks,
    Ananth

  • How to do subtemplate Using XML Publisher Template Builder for Word 5.6.2

    Is it possible to do subtemplate (similar to subreport in crystal report) using XML Publisher Template Builder for Word 5.6.2?. If yes, can anyone explain how to call or import subtemplate from main template?
    Thank you
    V.Piraba

    Hi V. Piraba,
    Here is how it works for me in Microsoft Word 2003. I'm not sure if it will work in Word 5.6.2.
    Creating Subtemplates
    1) Make sure you fill in the “Territory” field when creating Subtemplates. Otherwise there will be no way to import the Subtemplate into another Template. The Import command requires the Territory field to call it from other Templates. You will get a big Java error if you try to import a Subtemplate that does not have the Terriroty field populated.
    Importing Subtemplates
    1) Place the following syntax at the beginning of your XML Publisher template to import a subtemplate (in Oracle Applications)
    <?import:xdo://XDO.[Template Code Name].English.US?>
    Example: <?import:xdo://XDO.WC_SUBTEMPLATE_LOGOS.English.US?>
    2) Use the following commands to importing Subtemplates from local/network drives (outside of Oracle Applications):
    <?import:file:C:/Temp/WC Subtemplate - Logos.rtf?>
    <?import:file:L://Templates/WC Subtemplate - Logos.rtf?>
    <?import: file:///C:WorkChemical.xsl?>
    You can email me at [email protected] if you have further questions.
    Hope this helps!
    Dan

  • 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 in standalone BIP

    Hi,
    I've created one main template and two subtemplate. All template have different dataset. I want to print that sub template in separate page based on condition. like
    Page1-Main template
    Page2-Subtemplate1(if condition=true) conditon is related to main template dataset field
    Page3-Subtemplate2(if condition=true) conditon is related to main template dataset field
    We are using standalone BIP enterprise. Please anyone tell me how to do it in details.
    Thanks.

    Actually, i had created one xml data file instead of multiple data files. I achieved it by below steps...i could do it because we had one common field in each xml data file.
    Main template
    page-break
    If condition1=true then
    desired behavior (contains subtemplate1 description)
    end if
    page-break
    if condition2=true then
    desired behavior (contains subtemplate2 description)
    end if
    Hope it helps...

Maybe you are looking for