Format number not working correctly in XML Publisher Report

Hi,
I have requirement to print sum(column1) with number format with commas on the header.
I tried giving <?format-number:sum(//CURRENT_COST);'99G990D00'?> this formula is sum current cost column and displaying as 140.253.123.00 but i want to display the same as 140,253,123.00
i even tried <?xdoxslt:xdo_format_number_l(sum(CURRENT_COST),'999G999D99','EN-us')?> but its even giving the same result as  140.253.123.00
Please let me know if anyone had the same issue.
Thanks.

Hi,
You can't mix the XMLP extended functions (ie anything prefixed with xdofx) with xsl functions (see user guide - Extended SQL and XSL Functions).
You could look at using the Choose statement or doing a set of IF statements
ie <?if:CURRENCY='JPY'?>format...<?end if?><?if:CURRENCY...<?end if?>
If you go with the multiple IF statements you will probably need to use <?if@inlines:CURRENCY='JPY'?> otherwise you will get carriage returns (see IF statements in boilerplate text in the user guide).
Thanks
Paul

Similar Messages

  • If employee id is the same should not print on the xml publisher report

    Hi Dear,
    I met with one problem and needs some suggestion on the best approach on it. It is a xml publisher report.
    We have multiple rows for the same employee , but for the same employee only the first row needs to print the emplid.
    Do we need to write the if statement , how to get the value of the last row emplid ?
    For example :
    EMPLID EMP_RCD STATE
    1001 0 CA
    1 TX
    Any suggestion is appreciated.
    Thanks,
    Dennis

    I understand your requirement is as follows:
    Requirement:_
    The data is this ->
    EMPLID COLUMN 1 COLUMN 2 COLUMN 3
    EMPLID_01 DATA_01_01 DATA_02_01 DATA_03_01
    EMPLID_01 DATA_01_02 DATA_02_02 DATA_03_02
    EMPLID_01 DATA_01_03 DATA_02_03 DATA_03_03
    EMPLID_02 DATA_01_04 DATA_02_04 DATA_03_04
    And you need report in this format:
    EMPLID_01 DATA_01_01 DATA_02_01 DATA_03_01
    DATA_01_02 DATA_02_02 DATA_03_02
    DATA_01_03 DATA_02_03 DATA_03_03
    EMPLID_02 DATA_01_03 DATA_02_04 DATA_03_04
    Solution:_
    If my understanding is correct, then you can make use of variables
    at start of template set the variable to 0
    *<?xdoxslt:set_variable($_XDOCTX,'PREV_EMPLID',0)?>*
    at the end of each data row, reset the variable
    *<?xdoxslt:set_variable($_XDOCTX,'PREV_EMPLID',EMPLID)?>*
    while printing emplid in that row use IF condition
    *<?if:(xdoxslt:get_variable($_XDOCTX, 'PREV_EMPLID'))!=EMPLID?>*
    The above If condition will print emplid on the row only when there is change in EMPLID, so effectively printing emplid only on the 1st row of data for each employee id.
    Also, you need to ensure that you group by employee id before you print each row.
    Let me know if this works for you.

  • Format-number not working for me with preview to excel

    Hi,
    I have a report with 8 fields across within a table.
    Each field is formatted in the same way, with format-number like this (there are 8):
    <?format-number:total-year-remaining;’PT999G999D99’?>
    (that's the type-your-own form-field help text in the word template).
    When I preview the PDF, the data looks fine (8 cells shown below):
    .00 (.10) (.10) .00 (.50) (.50) (.60) (.60)
    But when previewing to Excel, there are two problems:
    1. Only the data in the last field (the 8th one) is formatted with the oracle mask:
    (.60)
    But upon closer inspection, there are two blank spaces after the number in that cell, and the value itself is treated like a string, e.g. '(.60) '. In fact if I ask excel to format this cell like a number with currency and two decimal places, in won't do it because of trailing spaces. Its just not a number to excel at that point. Probably the ('s don't help things either.
    2. The data in the first seven fields in excel are numeric, and I can format them in excel as currency, but I wanted XMLP to handle this, not the excel user.
    The bottom line is this: I want both PDF and excel output. I want both forms to have the fomat mask applied correctly. And I want excel to treat each cell as a number. Is this possible?
    Thanks
    Adam

    Anatoli,
    Hello!
    I don't know if my situation is the same as yours, but after a lot of head-scratching, forum searching and template rebuilding, I finally figured out my problem.
    I had one column that no matter what I did kept appearing in Excel as text. I'd format it to Number in Excel and nothing. When trying to sum the column, Excel would not recognize any of the values as numbers. I even did the reformatting on the XML Word template to number, and the currency format that Adam mentions. Still no go. The $ and ',' appeared, but column still formatted as string.
    I just finally noticed Adam's mention of the 2 extra spaces at the end of the numbers and sure enough mine was doing the same thing. Take out the 2 spaces and voila! Number!
    Every time I redid my template in Word (07 and 03), I used the wizard. (Add-ins>Insert>Table>Wizard) walked through the steps, not really changing anything. Then I would preview and the spaces would be there. The column that I was having problems with was the last column of the table, which would get the text 'end G_ASSIGNED_CC' inserted in after the field name - separated by 2 spaces. Once I took out these two spaces, so the column now shows 'COSTend G_ASSIGNED_CC', it worked fine in Excel - all numbers.
    Hope that helps someone out there as I was having a heck of a time finding anything (solutions anyway) on this.
    Thanks,
    Janel

  • Some RTF commands not working in Oracle XML Publisher Desktop 5.6.3

    Hello,
    I am using Oracle XML Publisher Desktop 5.6.3 (Patch 5887917) and seems like some of the RTF command are not working. I am following Tim Dexter's blog (http://blogs.oracle.com/xmlpublisher/2007/10/here_are_my_terms_conditions.html ) and could not make the "new" commands from his blog, work in my template.
    <?section:force-page-count;'end-on-even-layout'?> -- even with this on the template, I'm still getting output with odd total numpages
    <?section:xdofo:blank-on;'even-skip-page-count'?> -- cannot suppress the NUMPAGES value of MS Word
    Do I need to apply additional patch(es) on top of Patch 5887917 for the MS Word add-on? Could you please tell me what am I missing?
    Thanks.

    Hello,
    I am trying to install the latest version but getting the error below when performing Preview.
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Documents and Settings\rmembrere\My Documents\MyDelorme\XML Publisher Project\CONVERSIONS\templates\DEL_POs\DEL\PO_TEST_AGAIN.rtf
    RTFProcessor setLocale: en-us
    RTFProcessor setConfig: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg
    FOProcessor setData: C:\Documents and Settings\rmembrere\My Documents\MyDelorme\XML Publisher Project\CONVERSIONS\templates\DEL_POs\DEL\PO_Sample_2020870.xml
    FOProcessor setLocale: en-us
    FOProcessor setConfig: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg
    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: Variable not defined: '_XDONFSEPARATORS'.
         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
    Anybody who has used the commands (page suppression) provided by Tim in his blog? May I know from what version you have done it? The blog was posted back in 2007.
    Thanks!

  • Output not printing correctly for BI Publisher report.

    Hi All,
    We have a BI Publisher report which is printing correctly on one printer but not on another printer. The top and right side of the output are getting truncated. Printer type for both the printer is same that is "--PASTA Universal Printer Type" and both are using the same printer driver 'PASTA_PDF' and same style 'PDF Publisher'.
    Please let me know how can I debug the issue.
    Thanks
    Vishalaksha

    Steve- I understand what you are mentioning about the ftp, the XML file looks okay on both server and the client except for the letter 'ü ' and the rest of the German characters prints okay. THe problem is that the BI reprot is printing the same wrong characters.
    --Ravi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Online number not working correctly.

    I bought an online (Irish) number last week.
    It works OK when anyone from inside of Ireland calls it but when someone from abroad calls they get an automated message saying that "the number is not active".
    I'm wondering why this is and how to resolve it..
    Regards, Evert.

    I'm having the same problem.  I have an online number for the 415 area code but every time I call someone my number is a 661 area code.  Not cool.  How do we get this fixed?

  • Date Format is not Working in Cross tab Crystal report 2008

    Hi,
    I have developed an application ASP.Net c#
    in Framework 3.5 with crystal report 2008 with service pack 5.
    in my crystal i used cross tab to show the grid records. one of the data having the data type as date time after launching the report, when i export the report with option "export to excel (data only)" and check the format of the date value in excel it show the general string
    if i place that data in any other location other than cross tab then it reflects the format what i give in report design. but when the control is in cross tab
    its not effect
    how to solve this!

    And tweeted
    - Ludek
    Senior Support Engineer
    AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Text formatting in Numbers is not working correctly.

    In Numbers on Chrome text formatting is not working correctly, it's almost as if a CSS file is not being loaded. To be precise, when I try to make a cell Bold there is no bolding. I am using Arial as a font. This has been an issue on Mac and Windows. Any ideas?

    Do you have the same problem with Safari or Firefox?

  • Spry menu formatting not working correctly in DW CS6

    Hello,
    I've installed  a spry menu but the formatting is not working correctly.
    The hover colour works correctly but the selected menu item  colour does not change. Only the home menu tab remains coloured.
    Please can anyone suggest what might be wrong?
    Thank you.
    Robbieg

    Ah. OK. I've found the problem. On the every page  I've got a class=current attribute to the <a> tag for the  home menu item.
    Now, since this menu code is in a template as part of the top part of every page, it means that this is also included on all the other pages of the site. How do I get this attribute  to be different on each page that uses the template?
    Thank you.
    Robbieg

  • SSRS 2008 R2/SSRS 2012 Tab Delimited setup is not working correctly in Report Designer

    I have changed a RSReportDesigner.config to add a tab delimited option for report export, but it is not working correctly in vs2008/vs2010 report designer. I get a duplicate of CSV (comma delimited) in the export dropdown list.
    I have tested SSRS 2008 R2/SSRS 2012 on Windows 7 64 bit professional.
    It is working correctly in the report manager.
    <Extension Name="TAB" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
            <OverrideNames>
                <Name Language="en-US">TAB delimited</Name>
            </OverrideNames>
            <Configuration>
                <DeviceInfo>
                    <FieldDelimiter xml:space="preserve">&#9;</FieldDelimiter>
                    <Encoding>ASCII</Encoding>
                    <UseFormattedValues>False</UseFormattedValues>
                    <NoHeader>False</NoHeader>
                    <FileExtension>TXT</FileExtension>
                </DeviceInfo>
            </Configuration>
          </Extension>

    Hi Dave0323,
    According to your description, you want to export your report into TXT file and change the delimiter to be a Tab. Right?
    In Reporting Services, when exporting to a CSV file, we can change the default field delimiter to any character that we want, including TAB, by changing the device information settings in the configuration file. For example, to use TAB,
    update the FieldDelimiter setting to <FieldDelimiter xml:space="preserve">[TAB]</FieldDelimiter>. And we can change the FileExtension to be TXT if we want to export it into a TXT file. So in this scenario, we just need to modify the configuration
    file like below:
    The result looks like below:
    Reference:
    CSV Device Information Settings
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How do I get a refund for an App that does not work correctly?

    How do I get a refund for a App (Express Newspapers)  that does not work correctly?

    How to report an issue with Your iTunes Store purchase

  • XML publisher report works fine in English environment but NOT in Dutch

    We are using Oracle Reports to generate XML file which will be input for XML Publisher report . Our requirement is to generate report in Dutch (Netherlands) language.
    We developed a report which is working fine in English. Then we copied this RDF file to NL directory also registered concurrent program in dutch language but then it stopped working and gives error.
    Basically it doesn't create any XML output .
    Please help . Its URGENT.
    Thanks in Advance.
    Manoj

    Hi Norman,
    Thanks for the reply, actually my query was failing as it was trying to compare English date format (1-MAY-2007) which was stored in a DFF with Dutch date (1-MIE-2007) database format ,so it was not generating any xml output.
    We have resolved this issue but now we are facing few other issue which are ,
    I have created a template which has a current date field. I inserted current date in Dutch format i,e, (1-juni-2007), but concurrent program output appears with english date format (1-June-2007).
    Same template has the customer name with 'Title' and this also appear in english i.e.Sir , in place of dutch title (Dhr.)
    Is it possible to display .pdf output with
    portrait (first page - Letter to customer)
    and landscape(second page - Invoice data details) styles for multiple customers in one request?
    We can do it for one customer by passing customer id so letter part (portrait output) is out of grouping and only data details (landscape) appear with multiple lines , but when we try to run it for multiple customers in one go , WITHOUT specifying a customer , it FAILS .
    Any help will be highly appreciated.
    Thanks - Manoj, Utrecht

  • XML Publisher report output in RTF format does not display full page

    Hi,
    We have one XML Publisher report, the output of report in RTF format is not getting displayed in Full Page in normal way (MS Word -->View menu --> Print layout) but we can see full page display when we do MS Word -->View menu --> Outline.
    Appreciate your valuable inputs on this.
    Is this a template issue or any profiles needs to be set.
    Thanks
    Vijay

    Do you have any header and footer on your template?
    If you have any header and footer then try to adjust it as of to display full page.
    Thanks
    Yasar

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • Why is  my serial number not working, it says it is invalid.  I have checked and it is correct

    why is  my serial number not working, it says it is invalid.  I have checked and it is correct

    The most likely explanation is that you downloaded the Creative Cloud version of Lightroom instead of the standalone version of Lightroom (which you can download from here).
    If that doesn't work, you'd need to provide a lot more details, including version of Lightroom, operating system, and exactly what you are doing that doesn't work.

Maybe you are looking for

  • Digital Audio Outs not mentioned in manual.

    I have a Pavillion p6140f PC. Below the monitor connector, above the mouse and keyboard inputs are "Digital Audio Out" RCA jacks. My manual doesn't mention these, whatsoever. I tried plugging them into my Yamaha mixer inputs with no success. Is there

  • Posting status for billing document

    Dear Experts I read some threads on the above but still has this doubt I have not found the answer. VBRK-RFBSK = C but when i click the 'accounting' button to see the accounting information for a billing document , the system says, in essence,  no ac

  • I want to know about hierarchy ?

    i want to know about hierarchy and all the step and simple example for that

  • I need to download flash media playback but I can't find the download button.

    I need to download flash media playback but I can't find the download button.

  • Answers PDF Export

    I create answers and all of them work fine. But: When I create an PDF the defined Subtotals are not displayed. Can somebody show me the to see all Totals und Subtotals? Regards; Stefan Hess