How to Format number in RTF template?

Hi,
In RTF template i am using Format_number for custom requirement. when i am using below conditon <?format-number(ENTERED_CR,'##,##0.00')?> number is getting formatted if above 1000 only. My requirement is 1). 444 should format like 444.00 2). 444.55 should format like 444.55 only. Can anyone suggest on this ASAP.

in the next time use BI Publisher forum - BI Publisher
<?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
output:
444    ->  444.00
444.55 ->  444.55

Similar Messages

  • How to use XDOXSLT in rtf template layout for etext template creation

    <DEFINE CONCATENATION>     BookDetails
    <BASE LEVEL>     Category
    <ELEMENT> Name || '/' || Price     
    <DELIMITER>      '/'
    <END DEFINE CONCATENATION>     BookDetails
    With EFTProcessor the above details are created in xsl file as follows
    <xsl:template name="CONCAT_BookDetails">
    *I need to declare one more variable here
    EG: <xsl:value-of select="xdoxslt:set_variable($mycount, count(.//Category))"/>
    --and use this variable for any dyanamic process inside this template. How to achieve this in rtf template by declaring a xdoxslt function. How to declare this
    syntax in rtf layout so that it creates a varibale in xsl template using the EFTProcessor. Please help me out. The main point here is to include xslt functions in
    rtf template layout for etext template creation.*
    <xsl:for-each select=".//Category">
    <xsl:call-template name="CONCAT_BookDetails_V"/>
    </xsl:for-each>
    </xsl:template>

    in the next time use BI Publisher forum - BI Publisher
    <?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
    output:
    444    ->  444.00
    444.55 ->  444.55

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

  • Gettin error Cannot convert to number in RTF Template

    Hi,
    I am working on xml template development i am getting the followinf error
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: D:\Tickets\Remittance Advice XMLP\canada_report1.xml
    FOProcessor setLocale: en-us
    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:324)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
         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
    I have checked the code and problem was due to following code i dont know where i went wrong
    <xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//G_SEL_INV_DATA"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
    Please help me to solve this issue...
    Thanks
    Rajesh

    What was the problem in the template? I am facing the same error, when I put a conditional in the data field, it throws the XML-22036: (Error) Cannot convert to number.
    error, where if the element was printed directly it works fine.
    error
    <Line 984, Column 130>: XML-22036: (Error) Cannot convert to number.
    @Line 984 ==> <xsl:variable name="v148" select="format-number(string(xdoxslt:one($v147)), string('###0.00'), string('_DECIMALFORMAT'))"/>
    End of Process.
    <format>
    Number, ###0.00
    <DATA >BROKEN
    If (to_number(../DocumentPayableCount) + to_number(Extend/NumberOfPO) + sum(to_number(../DocumentPayable/Extend/Commentlength))) <= 7 then Extend/InvoiceAmount end if
    <DATA >ALSO BROKEN
    If (../DocumentPayableCount + Extend/NumberOfPO + sum(../DocumentPayable/Extend/Commentlength)) <= 7 then Extend/InvoiceAmount end if
    <DATA> WORKS
    then Extend/InvoiceAmount

  • How to set parameter in rtf template

    Hi,
    I've created a data model query using a parameter in BI Publisher Enterprise. When I'm showing the data I'm first ask for the parameter value.
    Now I want to create a rtf template in BI Publisher Desktop. What do I have to do that the user can set the parameter and then see the result? So how to set the parameter in my query?
    Thanks
    chrissy

    Hey Chrissy... i am realy sorry, i have guided u in the wrong way...
    Above which i have explained was about Variable....
    To test passing a parameter value, ff you are using the:
    XML Publisher Runner – on the Setting tab enter a new line containing:
    Name: xslt. InvThresh
    Value: 1000
    Template Builder
    In the config file under <<TEMPLATE_BUILDER_HOME>>/config enter under the Properties section:
    <property name="xslt.InvThresh">1000</property>
    <xsl:param name="InvThresh" select="0" xdofo:ctx="begin"/>
    InvoiceNumber     Inovice Amount
    Grp: Invoice13222-2     $100.00EFE
    Grp: Invoice= <?for-each:G_INVOICE_NUM?><?if:ACCTD_AMT>$InvThresh?>
    13222-2 = <?INVOICE_NUM?>
    $100.00= <?ACCTD_AMT?>
    EFE = <?end if?><?end for-each?>
    Hope this will help u out....
    sorry for tht .....
    Thanks
    Praveen Gollu.

  • PDF formating issue in RTF Template

    Hi,
    I have an XML for which i have data for both subavisor level and fund level and the data at each fund level are derived/aggregated from Subadvisor level(using complex formula which is taken care at the database level not at the RTF level).
    I need to show both Fund level data and SubAdvisor level data in the report, so i have designed the required RTF Template to show the Sub Advisor level data for each fund Level Data.
    The Sample XML is(i have only included one SubAdvisorLevel data(XYZ) for the Fund(ABC) :
    <DATA_DS>
    - <G_1>
    <FUND_NAME>ABC</FUND_NAME>
    <SUB_ADV_ANA_MIL>1234</SUB_ADV_ANA_MIL>
    <MGMT_FEE_PAID>1234</MGMT_FEE_PAID>
    <MGMT_FEE_PAID_O>NA</MGMT_FEE_PAID_O>
    <MGMT_FEE_BP>1234</MGMT_FEE_BP>
    <MGMT_FEE_BP_O>NA</MGMT_FEE_BP_O>
    <TA_BILLABLE_ASSET>NA</TA_BILLABLE_ASSET>
    <TA_FEES_PAID>NA</TA_FEES_PAID>
    <TA_FEES_PAID_O>NA</TA_FEES_PAID_O>
    <TA_EFF_BP>NA</TA_EFF_BP>
    <TA_EFF_BP_O>NA</TA_EFF_BP_O>
    </G_1>
    - <G_1>
    <FUND_NAME>ABC</FUND_NAME>
    <SUB_ADV_NAME>XYZ</SUB_ADV_NAME>
    <SUB_ADV_ANA_MIL>123</SUB_ADV_ANA_MIL>
    <MGMT_FEE_PAID>123</MGMT_FEE_PAID>
    <MGMT_FEE_PAID_O>NA</MGMT_FEE_PAID_O>
    <MGMT_FEE_BP>123</MGMT_FEE_BP>
    <MGMT_FEE_BP_O>NA</MGMT_FEE_BP_O>
    <TA_BILLABLE_ASSET>NA</TA_BILLABLE_ASSET>
    <TA_FEES_PAID>NA</TA_FEES_PAID>
    <TA_FEES_PAID_O>NA</TA_FEES_PAID_O>
    <TA_EFF_BP>NA</TA_EFF_BP>
    <TA_EFF_BP_O>NA</TA_EFF_BP_O>
    </G_1>
    - <G_1>
    Because of this structure the XML, i have designed the RTF template by putting the following code:-
    <?for-each-group:G_1;./FUND_NAME?><?sort:current-group()/FUND_NAME;'ascending';data-type='text'?>
    <?FUND_NAME?> <?SUB_ADV_ANA_MIL?> ............................................(other Attributes are also present)
    <?for-each-group:current-group();./SUB_ADV_NAME?> <?if:SUB_ADV_NAME!=''?> <?SUB_ADV_ANA_MIL?>............(other Attributes are also present)
    <?end if?><?end for-each-group?>
    The only issue i am facing while exporting this RTF Template to PDF is that i am getting a blank row in the PDF(because of the condition <?if:SUB_ADV_NAME!=''?> ) for the 1st level of Sub Advisor level Grouping and there after all the Sub Advisor level data are coming up fine.
    Can you please help me out in resolving this issue

    Thanks Bipuser,
    But the inlines function in not giving the desired result, it is working in the same way even if i haven't put any condition.
    The problem with the existing condition <?if:SUB_ADV_NAME!=''?> is that only PDF is generated with the extra space and Excel does not comes up any space.
    Please let me know if you need any further information from my end.
    Thanks again,
    Regards
    Mrinal

  • How to print Title in RTF Template

    I want to define the Title of the Report Using Word
    File -> Properties -> Summary
    Say XYZ
    I would then like to reference this Title in my RTF Template. What syntax i can use for this?

    I want to use the Title property in Sub template which is common for all my templates. I know I can accomplish this by defining a parameter in main template and then passing it as parameter to the sub template. However i thought that Word properties is a more proper place for placing the title and somehow i need to reference it in my rtf template to that i can pass it as a parameter.

  • How to Sort Date in RTF template

    Hi
    in my report i have name, date_arrival, Time_arrival, Hotel. I created a report grouped by hotel. On the screen it's working OK. when I print yusing RTF created template, the date is not sorted as expected.
    Thanks,
    Ribhi

    I have read much about date formating. I think some of the functionality in to_chat and to_date is changing between versions. I don't know that this is the simplest way, but it is the only way that worked for me:
    <?sort: xdoxslt:format_date (ssPrimaryRevenueCloseDate,’ yyyyMMDD’, ’MM/DD/yyyy’,’Europe/London’,’GMT’)?>
    I do not understand why this function is not in the documentation.
    Edited by: user10189185 on 17-Mar-2009 05:01

  • Problem in Formatting Number in eTEXT template

    Hi All
    We want to format the payment amount for check in the eTEXT template.
    We want a number with 2 digits after decimal point and a comma before 3 digits to the decimal point.
    We tried using
    Number, ####,###.##
    But for the data 135 it is printing 0000135.00, But we want it in 135.00
    Similary for data 1356.7, we would like to have 1,356.70
    I tried with some trial and errors, but no luck.
    your help is appreciated.
    Thanks & Regards
    Naga

    it should work,
    I would like to see your template,
    drop me xml and template to my id , its in profile.

  • How to hide codings in RTF Template

    Hi,
    I'm currently making a report which involves intensive calculation logics, for which I have no choice but to write intensive coding such as <?choose:?>, <?if:?>, <?xdoxslt:set_variable....?>. Howevever, even though all my codes are not supposed to output anything (all the logics are for setting up varialbles). There will be blank lines generated in the report outputs which mess up my format. Pls. don't suggest form fields as most of my lines are too long for the form field help properties to handle.
    Does anyone know a good way to hide coding in the RTF which won't affect the layout of the report?
    TIA,
    Jonathan

    BI Publisher 11g MSFT Plugin now offers a feature (not backward compatible) that allows up to 48kb of code in a form field. This enhancement is important as the original MSFT property limited this to be about 393 chars. Check this link for an example of this limitation: http://oraclebiblog.blogspot.com/2009/11/biee-and-bi-publishers-integration-best.html
    regards
    Jorge
    p.s I do not see other option. So please just close this post

  • How to show Parameter in .rtf  Templates

    Dear All,
    Kindly guide me that how can I show Report Parameters in my templates. I'll be very thankful to you for this.
    Regards
    Zain A. Siddiqui

    Hi Zain,
    If you are still looking for a solution, I would suggest trying this.
    Have another group in your report which selects parameters from fnd_concurrent_requests
    table based on the value of p_conc_request_id of your request..
    This group will show up in your xml which yiou can use.
    -Krishna.

  • How to set footers in RTF template

    Hi All,
    I need to display t&c at the bottom of each and every page except last page.There is an option for different first page footer, but when i use different first page footer option for first page and for other pages if i give the t&c footer in the next page,its getting displayed in all the pages, is there any way to restrict the footer to be displayed in last page?

    Take a look at the section titled: Last Page Only Content in the following guide. You should be able to create a footer only on the last page using this feature..
    http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187.pdf
    Thanks,
    BIPuser

  • How to get the CSV,DATA output from RTF template

    Hi Jorge
    Thanks for your help.
    as in the link you have given RTF template can have the output type CSV,DATA but in the preview i can see only html,powerpoint,pdf,html excel .
    How to see the output in SCV,DATA format using my RTF template do i need to do specific design for those outputs.
    Thnaks in Advance

    It is because it has been preconfigured with such outputs.
    To modify and add more output types simply go to:
    1. Edit your Report
    2. Click on "View a List" (upper right hand corner)
    3. Click on the "output formats" (corresponding to your layout) and
    4. Check (add) the additional output formats you want your report to have.
    cheers
    Jorge

  • 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

  • Rtf template date or number format check

    Hy all,
    when i use format-date or format-number function whith a bad parameter value, (not a date or a number), my report crashes.
    Is there an easy way to check date type and number type before using format-date or format-number function ?
    (like isdate or isnumber)
    thank's

    Hy all,
    when i use format-date or format-number function whith a bad parameter value, (not a date or a number), my report crashes.
    Is there an easy way to check date type and number type before using format-date or format-number function ?
    (like isdate or isnumber)
    thank's

Maybe you are looking for

  • MBP seems to be running half cpu. Apple no help at all.

    Hi! I just noticed that my normally zippy macbook is running about half speed now. I'm a video DJ, and I run a program called Serato Scratch Live. It will not scan songs 4 at a time anymore. It will only scan one song per core or virtual core.. This

  • Numbers - need only 1 page emailed/pdf

    I am using numbers on my ipad at work and have set it up to grab a section of one worksheet which is then duplicated into another form that I want to efax. Was wondering if there is a way to only email 1 page of the worksheet or at least save 1 page

  • Upgrade catalog

    Hello all, After upgrading my 10.2.0.3 database (configured Rman backup to TAPE) to 10.2.0.4, i got the bellow message when i connected to RMAN: PL/SQL package RMAN.DBMS_RCVCAT version 10.02.00.03 in RCVCAT database is not current PL/SQL package RMAN

  • How To Edit Icons In Photoshop CS5 ?

    I go through this everytime I have to reinstall an OS, after installing all my programs I'm assigning my custom icons and inevitably I find one I want to tweak, I go to open it in Photoshop and... nothing. Then I spend an hour on Google looking for t

  • Can't Open Responsibilities in SOB 2

    When i choose a responsabilty of SOB 2 (dollars) does not enter to the main responsibility form. It shows the Change Responsibility Form Any Ideas? Ed