Calculations in RTF Template

Hi All,
I am new to BI Publisher and I am trying to create a template that will calculate growth for various fields.
The data is split like (ignore # - using to show structure of XML):
<YTDKPI>
###<YTDKPI_ROW>
######<FIELD 1>(Val)</FIELD 1>
######<FIELD 2>(Val)</FIELD 2>
######<FIELD 3>(Val)</FIELD 3>
###</YTDKPI_ROW>
###<YTDKPI_ROW>
######<FIELD 1>(Val)</FIELD 1>
######<FIELD 2>(Val)</FIELD 2>
######<FIELD 3>(Val)</FIELD 3>
###</YTDKPI_ROW>
</YTDKPI>
There are two <YTDKPI_ROW>, one for 2009, one for 2008.
Within the template, I would like to calculate the growth year on year for each of the fields.
My template so far looks like (again ignore #):
|## KPI ###|##<?for-each-group@column:YTDKPI;./YEAR?>#####<?YEAR?><?end for-each-group?>##|
|## YEAR ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?>#<?YEAR?><?end for-each-group?>##|
|
|## KPI 1 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD1?><?end for-each-group?>##|
|
|## KPI 2 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD2?><?end for-each-group?>##|
|
|## KPI 3 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD3?><?end for-each-group?>##|
|
When previewed, this results in a 3 column table with the KPI's for 2008 in column 2 and the KPI's for 2009 in column 3 (names in column 1)
If possible, I would like a 4th column to calculate the % change between 2008 and 2009.
I would like to do this within the template as the above is a very simplified version of the actual and to have fields within the data for each of the growths would not be the preferred method.
From the above I hope I have communicated exactly what I need!
I think the problem I face is in specifying a particular row number within the data to perform a calculation?
I may have started off completely wrong, so any advice would be useful.
Please Help!
Many Thanks
note: the data is generated via an Answers report and the template has been created as an RTF template using Word 2007.

Hi Vetsrini,
That didn't work either. I think we need to take a step back to ensure I have not missed something.
Please see below for a sample xml and the code from word:
<DATA>
<YTDKPI>
<YTDKPI_ROW>
<YEAR>2008</YEAR>
<SALES>100</SALES>
<PERCENT_TO_PLAN>0.8</PERCENT_TO_PLAN>
</YTDKPI_ROW>
<YTDKPI_ROW>
<YEAR>2009</YEAR>
<SALES>150</SALES>
<PERCENT_TO_PLAN>0.85</PERCENT_TO_PLAN>
</YTDKPI_ROW>
</YTDKPI>
</DATA>
YEAR     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?YEAR?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/YEAR div /YTDKPI/YTDKPI_ROW[2]/YEAR)?>
SALES     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?SALES?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/SALES div /YTDKPI/YTDKPI_ROW[2]/SALES)?>
PERCENT TO PLAN     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?PERCENT_TO_PLAN?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/PERCENT_TO_PLAN div /YTDKPI/YTDKPI_ROW[2]/PERCENT_TO_PLAN)?>From loading the xml data into word, copying and pasting the code into word (2007) and previewing I get:
YEAR
2008
2009
NaN
SALES
100
150
NaN
PERCENT TO PLAN
0.8
0.85
NaN
If I use the other suggestion, for the calculation, it returns a blank cell.
Please Help! What do I need to do?
Again Many Thanks,
Edited by: user11240727 on 17-Sep-2009 02:06

Similar Messages

  • Can we do Calculations in RTF Template

    Hi Friends
    Can we do calculations in RTF template with the fields existing in the XML code.
    Say there are 2 fields CF_TAX1 and CF_TAX2, can we do calculations with them to give output in a cell in a table in the RTF template for eg:
    (CF_TAX1)/(1+CF_TAX2)
    What will be the exact syntax of the above to be used in RTF Template.
    Regards
    Ray

    All kind of calculations can be done, you can also use varibale and store the values and print it in differnt cell

  • Help with math / calculations in RTF templates

    Greetings,
    I know that there are math capabilities in the templates... I've seen the code samples in the Core Components guide.
    What this doesn't tell you is WHERE these things would go in a template. And... that... is my question.
    We are just starting to use BIP in conjunction with JDE EnterpriseOne (8.12, tool set 8.97.12). For our first attempt we're creating our template over a new report.
    I have a template where I sum two different repeating values (through the normal BI Properties) and place these values in two separate cells in a table. I want to sum the two of these together for a "grand" total.
    I've seen the "examples" but they really aren't very helpful. The xsfo, etc. for doing addition is fine, but WHAT are the values to add and WHERE does the code go?
    If anyone has done something like this or has experience using the embedded code I would appreciate hearing from you.
    Thanks in advance

    I see what you are saying about the spaces... but it made no difference... still got the error.
    The XML file is too large and convoluted to be pasted here.
    With reqards to the following snippet:
    COLA = <?sum(current-group()/COLA)?>
    COLB = <?sum(current-group()/COLB)?>
    Summ== <?sum(current-group()/COLA) + sum(current-group()/COLB)?>
    Where does THIS code go?
    Here is the error detail:
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Documents and Settings\jdenison\My Documents\BIP Templates\R5642001\R5642001_TEMPLsave.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\jdenison\My Documents\BIP Templates\R5642001\R5642001_RICE0001_D081029_T144059683.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.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 RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:439)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'sum'
         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)
         ... 15 more

  • Creating Calculations in RTF templates

    Is there any way of creating calculations or formula functions within rtf's?

    http://blogs.oracle.com/xmlpublisher/discuss/msgReader$75

  • Calculation in rtf template

    I got error when I perform calculation in a field, the code is
    <?sum(current-group()/_IFNULL__BE_measures_._TOTAL_COST___0_) div sum(current-group()/_BE_measures_._GROSS_SALES_)?>
    It shows errors:
    Caused by: oracle.xdo.parser.v2.XPathException: An internal error condition occurred.
    My case is infact a simple % ratio of
    [Sum(Field A) - Sum(Field B) ] / Sum(Field A)
    Any workaround ??? or use xdofx? but I have tried to use xdofx but nothing is shown.
    Please help
    Thanks ~!

    Field A and B are both numbers.
    I also aware of '0' problem and I have already define it (ifnull (xx,0) ) from answers.
    Finally, I use this to make it done:
    <?xdoxslt:div(sum(current-group()/_BE_measures_._GROSS_SALES_) - sum (current-group()/_IFNULL__BE_measures_._TOTAL_COST___0_), sum(current-group()/_BE_measures_._GROSS_SALES_)) * 100 ?>
    I wonder why I can't use simply "div" nor "xdofx" to archieve this....
    Thanks all anyway ~

  • How to select specific rows in rtf template for complex calculation

    Hi,
    I want custom calculation in my rtf template and for this i need to select specific cell's value OR specific row's value. Any one please suggest how can I get this. Below is the example i have plotted using excel. My target is to get field 8 and 9 using sum and minus. We can calculate column over column, is there any way to calculate row over row? If I use variables, then i have to create so many variables because I have more columns and rows to calculate (here i posted one sample table). Any one please help me how can I get expected result other than using variables! If "Using variables" is the only way then also give your valuable opinions.
    Row No
    Curr Qtr
    PQtr1
    PQtr2
    3
    B3
    C3
    D3
    4
    B4
    C4
    D4
    5
    B5
    C5
    D5
    6
    B6
    C6
    D6
    7
    B7
    C7
    D7
    8
    B8=SUM(B4:B7)
    C8=SUM(C4:C7)
    D8=SUM(D4:D7)
    9
    B9=B8-B5
    C9=C8-C5
    D9=D8-D5
    Thanks.

    Hi AlexAnd,
    Thanks for the reply, I got 0 using both codes. This is a dummy table and I plotted 3,4 to give an idea of row number (as like as excel). Rows are individual data sets combining different measures and dimensions with different values.
    Account
    Curr_Qtr
    PQtr1
    PQtr2
    Deposit
    10
    15
    20
    Loan
    15
    20
    25
    Earning
    20
    25
    30
    Assets
    25
    30
    35
    Total
    =SUM(15,20)
    =SUM(20,25)
    =SUM(25,30)
    Expense
    =SUM(15,20)-25
    =SUM(20,25-30
    =SUM(15,20)-25
    Is there any way to identify the range or individual cell's value? Using variables I have to create lots of variables for each cells, I want to avoid that and want to use rows in calculation! Is that possible, Pls share your valuable opinions!
    Thanks.

  • Creating Parameters in RTF Template for BI Publisher Report

    hi,
    I have created Parameters in my BI Publisher Report and in SQL query. But i need to create same parameters in RTF Template , so that when i publish this report in dashboard , parameters will be visible. Can you please tell me how to create Parameters in RTF Template for BI Publisher Report ? I am not finding option. Please let me know .
    Thanks in advance
    Gayathri.

    all the parameter's value will be there in your xml .
    just you need to add parameter heading and corresponding xml tag name to get the parameter value on the report.
    if u dont have you can try like below
    https://blogs.oracle.com/xmlpublisher/entry/get_your_parameters_here_guv
    Declare Parameter in RTF Template
    Before you use the parameter in the RTF template file you need to declare it first. You can do so by having the following syntax.
    <?param@begin:%parameter_name%?>
    Note: where %parameter_name% is the parameter name that you have created at the BI Publisher Server UI.
    Here is an example:
    <?param@begin:param1?>
    Use it in RTF Template!
    Once it’s declared in the RTF template you can start using it as the same way you use the variable. You need to just add ‘$’ prefix in front of the parameter name. Here is the example:
    <?$param1?>
    The above example would print the parameter value in the report output. If you want to use this value in your condition or calculation you can simply use it as ‘$param1’. Yes, it’s that simple.
    If you are not sure if and how the parameter values are passed to the report when you run the report you can use this command in your RTF template, which will return all the parameter values passed to the RTF template at the runtime.
    <?xdoxslt:getXDOProperties($_XDOCTX)?>
    http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html

  • SUM Function in RTF Template

    Hi buddies,
    can we use functions like SUM,AVG etc. in the RTF Template.
    If possible please give adivce for the below scenario
    I have one column in the main body table "Extended Amount", I want to sum this field for the another column Total Extended Amount below this Main table.
    with regards
    Ram

    Hi All,
    I have a problem in calculating the SUM in RTF template with condition,
    Here is the XML
    - <LIST_G_LINE_NOTES>
    - <G_LINE_NOTES>
    <LINE_TRX_ID>1567856</LINE_TRX_ID>
    <LINE_ID />
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    - <LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <G_LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EQUIVALENT_UNIT_PRICE>-15.99</LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EXCHANGE_EXTENDED_AMOUNT>-223.86</LINE_EXCHANGE_EXTENDED_AMOUNT>
    <CUSTOMER_TRX_LINE_ID>1567856</CUSTOMER_TRX_LINE_ID>
    </G_LINE_EQUIVALENT_UNIT_PRICE>
    </LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO></CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    I need the summation of field LINE_EXCHANGE_EXTENDED_AMOUNT with the condition CF_ITEM_NO!=''
    can anybody help me with the solution.
    Thanks in Advance

  • SUM function with condition in RTF template

    Hi All,
    I have a problem in calculating the SUM in RTF template with condition,
    Here is the XML
    - <LIST_G_LINE_NOTES>
    - <G_LINE_NOTES>
    <LINE_TRX_ID>1567856</LINE_TRX_ID>
    <LINE_ID />
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    - <LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <G_LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EQUIVALENT_UNIT_PRICE>-15.99</LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EXCHANGE_EXTENDED_AMOUNT>-223.86</LINE_EXCHANGE_EXTENDED_AMOUNT>
    <CUSTOMER_TRX_LINE_ID>1567856</CUSTOMER_TRX_LINE_ID>
    </G_LINE_EQUIVALENT_UNIT_PRICE>
    </LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO></CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    I need the summation of field LINE_EXCHANGE_EXTENDED_AMOUNT with the condition CF_ITEM_NO!=''
    can anybody help me with the solution.
    Thanks in Advance

    Kavipriya,
    Here is the XML
    <LIST_G_LINE_NOTES>
    <G_LINE_NOTES>
    <LINE_TRX_ID>1567856</LINE_TRX_ID>
    <LINE_ID />
    <LIST_G_TRX_LINE>
    <G_TRX_LINE>
    <LINE_DELIVERY_ID />
    <DISCOUNT>0</DISCOUNT>
    <CP_LN_TAX_AMT />
    <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    <LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    <G_LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EXCHANGE_EXTENDED_AMOUNT>-223.86</LINE_EXCHANGE_EXTENDED_AMOUNT>
    </G_LINE_EQUIVALENT_UNIT_PRICE>
    </LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    </G_LINE_NOTES>
    Edited by: user13012317 on Mar 10, 2011 11:00 PM

  • Multiply 2 variables in RTF templates

    Hi,
    I am trying to multiply a variable with a calculated field-->
    <?xdoxslt:get_variable($_XDOCTX,'baseline')*(xdoxslt:maximum(current-group/TRGT_RATIO))?>
    where "Baseline"=xdoxslt:div(sum(current-group()/NMRTR),sum(currnet-group()/DNMTR))
    But this gives me an error.
    Please let me know what is wrong in here............................
    Thanks
    Edited by: 883026 on Nov 23, 2011 7:10 AM

    I am trying to subtract dates in an RTF template
    <?xdofx:if substr(EXP1_3,1,10) - substr(INVOICE_DT,1,10) >= 91 then (PYMNT_GROSS_AMT) end if?>
    I don't get any error messages or anything, but it is inconsistent at best,
    My EXP1_3 value is 05/31/2012 and one of my INVOICE_DT values is 04/12/2012,, in which case this statement should NOT be true and it should not return the value of PYMNT_GROSS_AMT,,but it does ?

  • Issue in grouping in RTF template

    HI ALL,
    I have a requirement as below.
    The report header part contains : Order number,
    Email_address,
    the report body part contains the details for each order like
    item number, item name
    Again the line section is based on the another group, so it should repeat for each group.
    My requirement is in header section for each order and email address i need to repeat the while header and line for a order.
    Ex: Header : Order_number :101
    Email :abc&gmail.com
    Line section :
    Here we have another group like demand_class
    DEMAND_CLASS : 'ABC'
    Item1: abc,
    item quantity1 :1
    DEMAND_CLASS : 'DEF'
    Item2: abc,
    item quantity2 :1
    Header : Order_number :101
    Email :def&gmail.com --------------------------------------same data only email changed
    Line section :
    Here we have another group like demand_class
    DEMAND_CLASS : 'ABC'
    Item1: abc,
    item quantity1 :1
    DEMAND_CLASS : 'DEF'
    Item2: abc,
    item quantity2 :1
    Another section : to display total calculation for each demand class for a order.
    So my requirement is to repeat the same data for each order and email address.
    Please help me on this

    If the demand_class group is under your first group, then you need to go one level up by using "../".
    So try using ../order_number, ../Email_address
    I really need to see your xml data structure.
    Send me the RTF template and xml file to [email protected] and I will try to help.
    Thanks,
    Bipuser

  • Problem with extended SQL functions in RTF Template

    Hello,
    I'm new to BI Publisher and I'm trying to create a new rtf template. I've created my layout and added fields without any problems, but I'm having trouble trying to insert calculations such as add,substract,multiply,divide, etc.
    Here is an example of what I'm trying to do:
    <?xdofx:STAFF_ASMT+100?>
    Where STAFF_ASMT is one of my fields. When I add this function all I get is the actual value from that field returned on the first page, and then on other pages I get the value plus an extra zero.
    So with my example data below I get: 6600 on page 1 and 51830 on page 2. Any ideas on what I'm doing wrong or if it is possible to do what I'm doing? Also, is it possible to add/substract/multiple two or more fields together?
    Something like this: <?xdofx:STAFF_ASMT+GROSS_INV?>
    I was going to add all of these functions to my SQL statement, but I have 30 or so calculations I want to perform in the layout and I don't want to have to write that all out in SQL.
    <ROWSET>
    <ROW>
    <STAFF_ASMT>6600</STAFF_ASMT>
    <GROSS_INV>0</GROSS_INV>
    </ROW>
    <ROW>
    <STAFF_ASMT>5183</STAFF_ASMT>
    <GROSS_INV>0</GROSS_INV>
    </ROW>
    </ROWSET>
    Thanks for your help

    When I tried that I get the following error message when I click the Validate Template option:
    [080609_031631893][][ERROR] [Line 162.184] Incorrect XPath: +
    And when I try to generate a PDF preview I get:
    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(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 RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:439)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: './/+'.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)

  • How to round numbers in RTF templates?

    Hello!
    I'm using BI Publisher for Word (Oracle BI Publisher Builder for Word 10.1.3.4.1) to build a template to my BI Publisher report and I want to calculate this:
    avg(X)/(avg(Y)-avg(Z)/0.9)
    The result should be rounded to 3 places.
    I tried:
    <?(sum(X) div count(X)) div ((sum(Y) div count(Y)) - (sum(Z) div count(Z)) div 0.9)?>
    and I obtained the expected result.
    But, when I try to round in this way:
    <?xdofx:round((sum(X) div count(X)) div ((sum(Y) div count(Y))-(sum(Z) div count(Z)) div 0.9),3)?>
    I obtain 0 when is expected other value.
    Can someone help me?

    Hi ,
    You can select the number format in RTF template .Double click the Form Field select
    Type :Number
    Number Format :#,##0.000
    Thanks.

  • Relative path for images in RTF templates

    Hi everybody!
    When I insert an image in a RTF template, I put its path into the web dialog, in order to see correctly the picture when I open the report from the xmlp server, in this way: url:{"http://servername/analytics/res/Images/image.bmp"}
    How can I make this path relative, in order to see the images even if the server name changes?
    Thanks so!
    Francesco

    Hi Tim,
    I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
    Steps:
    <?param@begin:CURRENT_SERVER_URL?>
    <xsl:value-of select="$ CURRENT_SERVER_URL"/>
    CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
    Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
    We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
    As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
    Thanks,
    Amit D

  • Resetting Header and Footer in RTF templates

    Hi,
    I developed an RTF template (template 1). This template contains start:body and end body for printing the header and footer in all pages. After printing this template then i have to call another template(template 2) from this. I called the template (template 2) using call statement. But the probelm is that the header and footer of template1 is printed in the output of template2 .
    I dont want to print this header and footer for template 2. Can anyone please suggest me in doing this. I placed start:body and end body in the second template with the assumption that 1st template's header and footer will be overwritten. But if i preview then am getting the error
    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\kpoda\Desktop\Invoice Printing Efficiencies\Sample XML Data\Sample Output4.xml
    FOProcessor setLocale: en-us
    each
    Please sugget.
    Thanks

    Hi,
    Do you have two templates (template1 & template2) that you want to display in the same document where the pages for template1 has one set of header and footers; and template2 has another set of header and footer?
    If that is the case you can simply create a new section in your rtf template so you have section1 and section2.
    In the body of section1 you call template1 and template2 in the body of section2.
    You can then have different header and footers for the two templates in the same document.
    BR Kenneth

Maybe you are looking for