Variable Subtrating in the RTF models

Hello

I'm trying to subtract two variables, but it seems that something is wrong. Please help me.
Here is my code:
<? choose:? >
<? When:xdoxslt:get_variable($_XDOCTX,'Var2')=(xdoxslt:get_variable($_XDOCTX,'Var1'))? >-<? end when? >
<? otherwise:? > <? xdoxslt:div((xdoxslt:get_variable($_XDOCTX,'Var2')-xdoxslt:get_variable($_XDOCTX,'Var1')),xdoxslt:get_variable($_XDOCTX,'Var1'))? > <? end otherwise? >
<? end to choose? >

put a number function around it

 number ( xdoxslt:get_variable($_XDOCTX,'Var2') ) 

Tags: Business Intelligence

Similar Questions

  • How to debug the RTF model

    Hi all

    How to debug the RTF model, we had an error during the creation of the report...

    Thanks in advance.

    Hello

    Check out the link below, it may be useful for you

    http://bipconsulting.blogspot.com/2010/01/bi-Publisher-logging-debugging-part-4.html

    Thank you
    Ananth
    http://bintelligencegroup.WordPress.com/

  • How to make a function of Division in the RTF models.

    Hi all

    How to use the function of Division in the RTF models on two fields XML.

    I have fields XML, B. I need to perform the function(A/B) in RTF models division. I did like this, but it appears no value.

    * <? xdofx:A / B? >, <? xdofx:div(A/B)? > * but is null resulting suggestions please.


    Thanks in advance.

    Published by: user1175240 on October 15, 2010 14:15

    Could you please try it in small box? I meant the part of the div

    Published by: amri on October 18, 2010 21:05

  • How to display an image blob at the top of the RTF model.

    Hello

    I want to display an image blob (company logo) in my RTF model

    My problem is how can I display this image in the header of the template.

    I tried this

    <?

    < fo:instream - foreign-object content-type = "image/jpeg" >

    < xsl: value-of select=".//LOGO"/ >

    < / fo:instream - foreign-object >

    ? >

    but failed

    Thanks in advance.

    I tried this

    <>

    ?>

    but failed

    course

    What is red elements?

    model you can be like

    ... of data...

    (after all data)

    (as a field)

    (in the header/footer)

    a few comments https://oralublog.wordpress.com/2014/10/04/bi-publisher-11g-footers-and-headers-in-rtf-template/

  • Merge cells in Excel of the RTF model output

    Newbie question. When I create a RTF model whose primary production is Excel, I usually have a lot of merged cells. Any advice on how to fix that? I almost always prefer my split cells.

    exporting to XLSX

    What export to xls?

    also that there emerged word? where is the same behavior or not?

    as I said

    can not say without looking at it

    can be yes or no

    output image seems strange

    It's may be bug or incorrect model

    Look at

    Generate an Excel output with an RTF template columns and rows of a Table are combined (Doc ID 1590858.1)
  • Exit Excel does not not the headers on each page of the rtf model

    Hi all

    I have an rtf template where I used a title in the header section. This repeats outputs in PDF and RTF. But output Excel it is not repeated.

    This is an expected behavior. If it's... does perform a work around...

    enjoy all the entries on this...

    Best regards

    gt1942

    AFAIK, you can't repeat the page output to Excel headers using RTF model.

    Excel page headers can be repeated for each page using Excel template.

  • code xdoxslt:Sum does not not in the RTF model: method not found "sum".

    We get the error when you run a RTF model customized using the application (Oracle HRMS) below and in Office BiPublisher for a particular set of data (1 employees check data). Format RTF model code which seems to be the cause of the error is the cumulative total code which is supposed to sum YTD_HOURS for all elements in the DataSet xml AC_EARNINGS:

    Problem code: <? xdoxslt:sum(YTD_HOURS_[.!_=''])? >

    The error message below it seems to be having trouble with the sum

    HRMS Oracle concurrent Manager error:

    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.invokeProcessXSL(XSLT10gR1.java:677)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:425)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:244)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    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 (TemplateH
    Elper.Java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3548)
    at oracle.apps.pay.core.documents.DocGenerator.process(DocGenerator.java:521)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method
    not found 'sum' to the 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)
    ... more than 17

    HR_6882_HRPROC_ASSERT
    LOCATION pyjavacom:2
    APP-PAY-06882: Assertion failure detected at the location pyjavacom:2.

    Cause: an internal error has occurred at the location pyjavacom:2.

    Action: contact your Oracle customer representative.



    Note: The RTF check model works ok most of the time, but there is a problem with the model of XML data below. In this scenario, there is no YTD_HOURS and only one line of data for this employee, unlike the data second example of another audit below.

    The data that the code does NOT work with:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >

    Data that works with the code:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58444 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511222 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1.46 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25,51 < / YTD_AMOUNT >
    Life term for the Group < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58431 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511205 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 9.6 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 163,2 < / YTD_AMOUNT >
    < REPORTING_NAME > dental CB < / REPORTING_NAME >
    < CURRENT_HOURS > 0 < / CURRENT_HOURS >
    < YTD_HOURS > 0 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 64614 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10518109 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1526 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 1571.12 < / YTD_AMOUNT >
    < REPORTING_NAME > TOWP < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 80 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 57863 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10510820 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 937,2 < / YTD_AMOUNT >
    Holiday < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 48 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 63592 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10517244 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 285.07 < / YTD_AMOUNT >
    < REPORTING_NAME > F90 SVEU DIST < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 67074 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10520289 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 85.24 < / YTD_AMOUNT >
    < REPORTING_NAME > other Tx RRs < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >


    If anyone has any ideas as to what is necessary to resolve the issue we have in our company can you please let me know? I appreciate your time. If you need more information please let me know and I'll post it.

    Thank you

    Greg

    Published by: gtruta on November 20, 2012 16:20

    Published by: gtruta on November 20, 2012 16:21

    xdoxslt sum allows us to avoid the issue while fields sum with the value null. as you already now the condition with the field u do not need xdoxslt

    is - enough try this

    you are able to get a preview of the template with the code of the sum.

    Send me your model and xml. I can try at my side
    E-mail: [email protected]

  • Conditional formatting in the RTF models

    Hello

    I'll just with the design of rtf models. I have a question about the function of conditional formatting. It comes

    IF I have different types of customers(corporate,individual,etc..) passed as parameters, can, a particular cell be formatted with different colors for different customers. for example, if the setting is undertaken client the the color of a particular cell should be RED in color, and if the parameter is the color of the cell must be GREEN in color.

    Please help me with this.


    Thanks in advance

    Yes, you can conditionally format individual cells.

    Take a look at the guide (link provided) and looking for 'highlighting of cells:

    http://docs.Oracle.com/CD/E10415_01/doc/bi.1013/e12187/T421739T481157.htm

    Code example: 1000? >rouge

    Thank you
    Bipuser

  • With regard to the RTF model: enter the commands in your RTF model

    Hi all



    I read the Oracle Documentation saying: "entry of the orders in your RTF model."


    I tried to look at this one, I have a requirement.

    Really how can I enter the commands in RTF model. I didn't get this one a lot.

    Any help is very appreciated as always :)

    Thank you
    Xavier

    Well, my OPE user's guide did not have the mentioned pages but I watched this guide: http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12188.pdf

    and given the documents, you need just to include controls in a form field in the foreach loop for the element you want to split the document by... You could insert a form field and then double-click the field, go to the properties of Word-> add-> the status bar help text and change the code following the instructions in the guide.

    Hope that helps.

    Bipuser

  • Is it possible to get the linked server settings in the RTF models

    Hi all

    I have a Common.rtf have the code as
    <?template:Header?>
     (My Image)
    <?end Header?>
    I saved over file at a certain place in my system

    Now I have a different Main.rtf using Common.rtf like that
    <?import: file:///I:/MyTemplates/Common.rtf?>
    <?call@inlines:Header?><?end call?>
    Common.rtf content is perfectly visible in Main.rtf but any configuration execution for 'file location' Main.rtf possible?

    Basic requirement is to run in any computer without making any changes to the 'file location' in Main.rtf again and again. Are there property server_url or something like that what can be used in RTFs?

    Any kind of help will be appreciated. Thank you very much.

    -Sookie

    Hello

    You should be able to save the common model on the server and be able to import it via a URL call...

    Read this article by Tim Dexter: http://blogs.oracle.com/xmlpublisher/2009/06/conditional_headers.html

    Thank you!

  • How to handle null values in the RTF models

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the model that I used the code to print a section below or not.

    <? If: number (CF_ELE_CNT + CF_ELE_CNT1) > 0? >

    The problem is when no data in the second group it was created not the tag XML for CF_ELE_CNT1, if CF_ELE_CNT has 13, it does not always print this partucular article. If I remove the CF_ELE_CNT1 in the State, it works fine. I was wondering how to handle this.

    Any help would be appreciated!

    Thank you
    RAV

    Hey Rav,.

    Check my profile, you will find.

    purpose of fusion {point} [AT] gmail [dOt] com

  • Question of the RTF model

    Hi all..
    I have the SQL query that has outside put the two following lines. :

    http://i55.Tinypic.com/xli1yp.jpg


    I need to show in the report in this way:

    http://I52.Tinypic.com/8wcvb7.jpg



    Is this doable... ? If so, can you let mw know how to start...

    My question is: lets take the first table in the report... we can enumerate amount 1, quantity 2 in two columns side by side... but I don't think in any case to display as in above figure

    Thanks for the help...

    Can you provide an xml file? Send me the file at [email protected]. I tried with a sample of data and it works.

    To display two tables side by side for a given date, create a table with two columns and each column by inserting the 'table of two columns"which will show your purchase data and Total.

    If you know that there will be only 4 columns amount you will have to deal with, then two individual tables can contain the data that you have entered in your image. First table includes quantity 1 and 2 of the amount, the second table amount 3 and 4 (in the largest table of two columns).

    Hope that helps.

    Thank you
    Bipuser

    Published by: BIPuser on June 10, 2011 09:35

  • I want to create the BI Publisher .rtf model as attaché

    Hi Experts,

    I'm creating the RTF template but unable to group and the merger of the blocks contained in the sample model. Could you please create the rtf with attached sample data model. For your reference, I enclose my RTF template as well. Please do the needful.

    Thanks in advance

    Thank you and best regards,

    Satya

    Hi Satya,

    I created the RTF model based on your design data and sample layout xml.

    Please find attached.

    Let me know if you need more assistance.

    Thank you...

  • RTF model error: compilation in the hidden module error.

    I use MS Word 2007 to change my rtf models.
    After installing the patch PS2 for MS Office I can't edit the rtf models more.
    When I try to edit any field in the model I get a message box with the 'Microsoft Visual Basic' header and the message "compilation in the hidden module error: Module_editFF.
    I noticed that the BI Publisher tab is no longer visible in the toolbar. I uninstalled the add-on and reinstalled again, the question remains.
    Any help will be appreciated.
    Thank you.

    If you do not see the BI Publisher tab, then go to MS Word-> Word Options-> Add - ins-> manage-> select Add-ins Word and make so that the "Templatebuilder.dot", TBCrosstab.dot etc. are checked.

    Thank you
    Bipuser

  • RTF model - export in XML format

    Hello

    I used the RTF model to generate the report.

    I want to see the report in XML.

    But, I do not understand this option in the "report seen as ' or 'export report AS".

    Can you please help?

    Attach the screenshot

    Thank you

    You must add XML as output at your disposal.

    Please follow this

    1 - click on "Edit" report

    Top of page 2 to right - click "View as List".

    3. in the output formats - add "data (XML)."

    Screenshot for your reference

Maybe you are looking for