Sub Templates and Watermarks

Hi,
I need to do a BI Publisher report that uses different images for different companies.
So, i though i would use sub templates.
The main template is the fields, etc...
and the sub templates are just the different company logos, images, etc....
But when i run the report i can only see the fields and no watermark.
Is it possible to do it this way or is there another way??

Hi,
If it's just images (i.e. logo),.. check on this one (dynamic images in a template):
http://blogs.oracle.com/xmlpublisher/2006/05/dynamic_images.html
Also, here's for the sub-template should you want to continue with it..
http://blogs.oracle.com/xmlpublisher/2009/06/conditional_headers.html
regards,..
Rownald

Similar Messages

  • Sub templates and blank pages

    Hi All,
    I wondering if anyone has solved this issue. I have one base template call template A and mulitple subtemplates let say b,c. Now A can call b or c based on a particular condition if the condition is satisifed. This works very well. However, Since A has these section breaks (cont) for B and C if the condition is not met I get a blank page. Is there any way to suppress this page if the condition is not met? I have made sure that there is no space after the calls to the subtemplates and work with the various breaks on the template A. Any pointers would be most appreciated...
    thanks,
    Matt

    One thing I forgot to add is template A's section before the call has two columns. The calls to the subtemplates B and C only contain 1 column. So, there need to be a section break between A and B/C else the format of the dual column in A is lost.

  • Error while calling sub template in XML Publisher

    Hi friends,
    For the Header part of my report,I create a sub template and i am trying to call it.
    I am calling the sub template using the following commands:-
    <?call@inlines:Header?>
    <?end call?>
    Then in the body ,I am importing this file using <?import:file:///C:\sreekanth\Header.rtf?>
    When i run the report i get the following error
    Caused by: java.io.FileNotFoundException: /C:\sreekanth\Header.rtf (No such file or directory)
    please help me .
    I am unable to find out the reason for the error.
    But when i run it locally it runs fine.
    Is then any problem while i creating the subtemplate?what are steps to create a sub termplate?

    Hi,
    the BI Publisher Forum might be a better place for you to get an answer than the Reports Forum.
    Regards
    Rainer

  • Default space after calling the sub template

    Hi All,
    I am calling sub template in the header of rtf report. Even though there is no spaces between header and report title, when previewing it displays a gap between the output of sub template and report title. In the sub template there is no spaces. Is it by default rtf creates spaces after calling sub template in header?
    Thanks,
    Sushil

    Even if i use simple <?call@inlines:HeaderENF?> <?end call?> <?import:file:C:/map/Header-Landscapem1.rtf?>  command in rtf header, there is still spaces between sub template values and AAA.
      AAA....
    The sub template has following code:
    <?template:Header?>
    <?param:dw_date; string?>
    DW REFRESH DATE: <?$dw_date?>
    <?end template?>
    I am using 11.1.1.6.4.
    Is it by default there will be spaces after calling the sub template?

  • Calling Sub-Templates from a Template not working

    I have a Template that I want to call a multiple Sub-Templates, and the Sub-Templates actually define an entire report. After I load the Data and try to preview I get the following error:
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 39, Column 62>: XML-22049: (Error) Template 'MWAC_JOB_RTG' invoked but not defined.
    Can someone tell me what this means? Is what I'm trying to do even possible?

    Is the sub template accessible by the main template? Have you included the import statement in your main template?
    Thanks!
    BIPuser

  • Problem in Consistent Header and Footer with Sub Templates in BI publisher

    Hi All,
    I have recently started working with OBI and used Sub templates for getting Consistent Header and Footer in all of our reports. I did this in the following way
    1. Created one template called HeaderFooter.rtf with Header and footer templates.
    2. placed the file in web server and called in the main Template with
    <?import: http://myserver.com:9704/xmlpserver/HeaderFooter.rtf?> I mean as static URL and it is working fine.
    3. Now as a part of generalizing the server i have added HTTPSERVER property in xdo.cfg file which is located in
    %BI_REPOSITORY%/Admin/Configuration.
    4. I have checked this property by placing <?xdoxslt:getXDOProperties($_XDOCTX)? in my rtf file and HTTPSERVER property is showing same as that of static.
    5. Now when i place <?import:http://{$HTTPSERVER}/HeaderFooter.rtf?> in my rtf it is ending with an error.
    so can anyone please help me out in this regard?

    Hi User XY,
    you might want to ask this in the [url http://forums.oracle.com/forums/forum.jspa?forumID=245]BI Publisher Forum
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Difference Between Crystal Report Template and Sub Report

    I am not able to get the Report Template Option/menu.
    I am working with Visual Studio 2005 , Crystal Report Version 10.2
    Do i need to have Crystal Report Server in order to work with Template.
    Also i will like to know the diff. between Template and Sub Report?

    Hello,
    The Report Template Wizard is not part of Crystal in .NET. You need to upgrade to the full version of Crystal Reports.
    Template is a base report to work from. Subreport is another report object that can be inserted into a section of the main report.
    Thank you
    Don

  • Issue with 'text box' in rtf sub template for peoplesoft XMLP

    Hi all,
    i have a weired problem using 'text Box' in a sub template. I am calling a sub template from my template. In my Sub template i have a text box ( i am using text box bcoz i want to justify the text not to the page margin but starting from a specific column.not sure if there is any other way with which i can do the same !!) . When i process the report (using application engine program) i get the below error
    Message Log entry:
    [052311_071441208][oracle.apps.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    psxmlp://SUB_BMX2<Line 63, Column 191>: XML-22031: (Error) Variable not defined: '_MR'.
    @Line 63 ==> </xsl:stylesheet>
    [052311_071441216][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:618)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(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 com.peoplesoft.pt.xmlpublisher.PTFOProcessor.generateOutput(PTFOProcessor.java:74)
    Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: '_MR'.
         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)
         ... 13 more
    [052311_071441218][oracle.apps.xdo.template.FOProcessor][ERROR] End Memory: max=64MB, total=11MB, free=1MB
    PeopleTools 8.49.27 - Application Engine
    Copyright (c) 1988-2011 PeopleSoft, Inc.
    All Rights Reserved
    Processing started
    data extraction for EMPLID:1000646332 EMPL_RCD:0 EFFDT:2009-12-28 and EFFSEQ:6
    CFilem::LoadDefn(RDCRHIUTEECKNDZN2SPSRQ) : read 1 chunks
    UnchunkStuff : read 1 chunks for nCharDataLen 10520 chars
    CFilem::LoadDefn(RDCRHIUTEECKNDZN2SPSRQ) : after decode & decompress: 35330 bytes
    Calling XMLP
    Processing Report Defn:TR_BMX2
    Error Executing XMLP.Error generating report output: (235,2309) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:51952 Statement:1163
    Called from:TR_LATAM_CONTRACTS.ContractsXML.OnExecute Name:ExecuteXmlp Statement:16
    Called from:TR_LAMCNTRCT.MAIN.GBL.default.1900-01-01.Step04.OnExecute Statement:20
    Process 442706 ABENDED at Step TR_LAMCNTRCT.MAIN.Step04 (PeopleCode) -- RC = 22 (108,524)
    Process %s ABENDED at Step %s.%s.%s (Action %s) -- RC = %s
    It works fine when i remove the text box from my sub template. I tried to put the text box directly in the main template and it worked fine !! it is erroring out only when i use the text box in sub template !!
    Template file:
    <?import:psxmlp://SUB_BMX2?>
    <?choose:?>
    <?when: .//LETTER_CD=”PA4”?>
    <?call: BA101?>
    <?end when?>
    <?otherwise:?>
    Invalid Letter Code. No Sub Template Call defined for this Letter Code.
    <?end otherwise?>
    <?end choose?>
    Sub Template:
    <?template:BA101?>
    Testing without text box.
    Testing with text box
    there is a text box with text here .. cannot be copied from word !!
    <?end template?>
    i got the below error when i tried to 'preview' the report from my report definition.
    Error generating the report output: During calling method PTFOProcessor.generateOutput, the XDO engine throws an exception:NULL. (235,3101) (235,2309)
    Error occurred during the process of generating the output file from template file, XML file, and the translation XLIFF file.
    Any help would be greatly appreciated.
    Edited by: Naveen Kumar on May 23, 2011 4:31 AM

    misunderstood =/
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    it's in output but what is data in database ?
    sorry but without knowing about source data for forming the xml i haven't ideas about your problem
    in db it's "TM " or "™" or ... ?
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    Something like XAE or "K" after PAY Value in the xml tag and continued the text value.  (Tag value is not getting copied exactly here - i am sorry for that )
    that's ok. i need to see the problem not the data as is
    Expected (output):  "Here it needs to produce the "PAY TM" (Here "TM" should be super scripted to "PAY" Value in tag).
    as super scripted in xml?
    as idea - you can have <PAY_TXT>PAY TM</PAY_TXT> and in publisher set TM as super
    Designing XSL Subtemplates - 11g Release 1 (11.1.1)

  • Problem creating dynamic URI for importing xsl sub templates in rtf

    Hi,
    We are using xsl based sub templates in RTF. My code in RTF to import sub template is
    <?import:http://localhost:7001/xmlpserver/Header.xsl?>
    <?call@inlines: CustomerReportHeader?><?end call?>
    This sub template import statement is used in lot of RTF's. We require to configure host,port name in server run time properties and will get the value in RTF and will construct URI dynamically ,So we put one property in xdo.cfg.
    xdo.cfg contains as below
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
    <properties>
    <property name="xdk-secure-io-mode">false</property>
    </properties>
    <properties>
              <property name="xslt.HTTP">'localhost:7001/xmlpserver'</property>
    </properties>
    </config>
    and i changed my sub template call to
    <?import:http://${HTTP}/Header.xsl?>
    <?call@inlines: subtemplate1?><?end call?>
    Where subtemplate1 : is one sub template in side Header.xsl
    This configuration is not working. The HTTP value is not being parsed. The BI publisher throwing exception as "Unknown host exception ${HTTP}"
    Please note that : I am able to print HTTP run time variable value in report by <?$HTTP?> adding in Form Field text.
    I have installed BI publisher 10.1.3.4.1 (xmlpserver) in weblogic 10.3.5
    Please guide us on this above problem.

    Hi,
    The problem got resolved when we tried same thing in BI publisher 10.1.3.4.2 (xmlpserver) in weblogic 10.3.5. It seems that BI publisher 10.1.3.4.1 does not have dynamic URI support.
    Thanks,
    Sanjaya
    Edited by: Sanjaya on Sep 4, 2012 2:09 AM

  • How to call a Sub template in BI Publisher for the same Loop

    Hi,
    I'm trying to achieve a multi template invoice customer facing Report output by using sub templates in BI publisher. I've stored the Template2.rtf file in Local machine temp directory and calling it in the main RTF. My Scenario is as described below:
    <?import:file:///C:\temp\Template2.rtf?>
    <? For-each@section: HEADERS?>
    ****Contents of header data and it's line***
    <?start@last-page:body?><?end body?>
    ***last page sub totals****
    **in next page i'm calling another .rtf file which is the second This template should repeat for each header transaction**
    <?call-template:Template2?>
    <?end for-each?>
    While trying to preview the output from Bi publisher Template, either it goes to infinite loop or it hangs up with error.
    Am i getting it wrong? for the Template2.rtf which i'm calling has contents <?template: template2?> <? For-each: cust_headers?> ** logic** <?end-for-each?> <?end template?>
    So for a given transaction i need to print two templates. All the data will be under <header> group. Please help me out if i'm missing something in the above.

    Do you get a "Template invoked but not defined error"? If so, the reason is because you the template can not be found...
    In your case, you have defined the template as:
    <?template: template2?> <? For-each: cust_headers?> ** logic** <?end-for-each?> <?end template?>
    However, in your call statement, you have (upper case T): <?call-template:*T*emplate2?>
    Change that and see if it resolves your error. If not provide details about the error.
    Thanks,
    Bipuser

  • Error obtained while calling a sub-template in RTF.

    Hi,
    I am trying to call a sub-template from my RTF template using
    <?import: file:///C:\Desktop\Sample RTF\TEST.xsl?>
    in a form field and
    <xsl:call-template name="add-X"> <xsl:value-of select="." /> </xsl:call-template> in another.
    The xsl file related to this template reads as follows:
    <?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="add-X">
    <xsl:param name="string" select="." />
    <xsl:if test="$string">
    <xsl:text>X</xsl:text>
    <xsl:value-of select="substring($string, 1,1)"/>
    <xsl:call-template name="add-X">
    <xsl:with-param name="string"
    select="substring($string, 2)" />
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>
    But I am ending up with an error. The error obtained is:
    ConfFile: D:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: D:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Documents and Settings\VishnuRam\Local Settings\Application Data\Oracle\BIPublisher\TemplateBuilderforWord\tmp\1\template2.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\VishnuRam\Local Settings\Application Data\Oracle\BIPublisher\TemplateBuilderforWord\tmp\1\download_data.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:641)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:247)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:181)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1151)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:275)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1809)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1027)
         at RTF2PDF.runRTFto(RTF2PDF.java:708)
         at RTF2PDF.runXDO(RTF2PDF.java:520)
         at RTF2PDF.main(RTF2PDF.java:305)
    Caused by: oracle.xdo.parser.v2.XMLParseException: The 'import' element children must precede all other element children of an 'stylesheet' element.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 14 more
    I will be glad if anybody can give me the idea where I am going wrong?
    Regards,
    Message was edited by:
    VishnuTR

    Put this as the first line in rtf
    The 'import' element children must precede all other element children of an 'stylesheet' element.

  • Sub templates with Locale - BIP 10G

    Hi,
    Does BI Publisher and desktop 10G support use of sub templates with locale information being passed while calling them ?
    Many thanks
    Rohit

    Hi,
    Does BI Publisher and desktop 10G support use of sub templates with locale information being passed while calling them ?
    Many thanks
    Rohit

  • Variable not defined: '_MR' error when using sub template

    Hi,
    I am creating a check print report. When I had the check layout and the invoice layout on the same template it worked fine. But when I moved the check layout to a sub template then I started getting the error Variable not defined: '_MR' but I dont have any variable '_MR' can some please help me on this.
    Thanks a ton in advance
    Lakshmanan a.

    Hi Lakshmanan
    Its probably worth running the XML Publisher template regenerator program. somehow, I think your templates are out of sync
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • PDF Sub templates.

    Hi all,
    I have just created an XSL-FO template from where I want to import a PDF sub-template.
    When I try to import the sub-template, I get the following error:
    java.io.UTFDataFormatException: Invalid UTF8 encoding.
    Can anyone help me resolve this issue?
    BR Kennth

    How to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
    http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
    When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
    IMHO you can not attach it to main. it'll be second independent report
    you can try subtemplate but it's not about rtf from rtf by click
    it's about call automatically rtf subtemplate from main rtf based on some conditions
    for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition

  • Interactive Report Sub-total and total

    Hi friends,
    I have an employee interactive report with group by job name and also showing the salary sub-total for each and every job(group by).
    I have an requirement like to highlight the sub-total for each and every job with a background color so that the user can identify the sub-total with the color, and also whether it is possible to display an overall total @ last in the report with a label named "Total Salary" in which it calculates the overall salary is also to be highlightened with the background color.
    Also is it possible to display a text "Sub-total" besides each and every salary sub-total  of job(group by). Currently if we display a sum for the salary then im getting the total's but with out a text named total.
    Since i can see the highlighted feature in interactive report but im not sure how to apply it for the sub-total and total column.
    I have reproduced the example in apex.oracle.com
    http://apex.oracle.com/pls/apex/f?p=4550:1:0:::::
    In the application 9494 named "test" in page1.
    Thanks in advance.
    Brgds,
    Mini

    Hi, Mini,
    style=background-color:red;
    But that Total region color dint change.The code for style should be in "Form HTML Element Attributes". However, this changes the background color only for the Total value not for the whole row.
    If you want to change for the whole row, you need to change the template that is selected for the region.
    I changed the region template in your application to "Borderless Region" and made the changes to the "Borderless Region" template, it now shows the background color for Total Value.
    <table class="t20Region t20Borderless #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" border="0" cellpadding="0" cellspacing="0" summary="" #REGION_ATTRIBUTES#>
    <thead><tr><th class="t20RegionHeader" id="#REGION_STATIC_ID#_header">#TITLE#</th></tr></thead>
    <tbody id="#REGION_STATIC_ID#_body">
    <tr><td class="t20ButtonHolder">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</td></tr>
    <tr><td class="t20RegionBody" style="background-color:orange">#BODY#</td></tr>
    </tbody>
    </table>The below does the trick. :)
    <tr><td class="t20RegionBody" style="background-color:orange">#BODY#</td></tr>Note: I made the changes to "Borderless Template", but you can copy the template to your own and apply this change.
    Regards,
    Natarajan

Maybe you are looking for