Grouping and Decimal characters in rtf templates.

Hi guys and girls,
I’m really struggling with a problem here regarding the decimal characters for the prices in my output.
I'm using XML Publisher 5.6.3.
My goal is to control the grouping and decimal character from my template.
The numbers in the XML data file can either be 10.000,00 or 10,000.00. The format is handled by the users nls_numeric_characters profile option.
The output of the template shall be based on the locale and not the data generated by Oracle Reports. For example: Reports to US customers shall show the numbers in the following format 10,000.00. Reports to our European customers shall show the numbers in this format 10.000,00.
How can I achieve this in my templates? Can it be achieved at all?
Thank you in advance.
Kenneth Kristoffersen
Edited by: Kenneth_ on May 19, 2009 1:30 AM

Hi,
Thank you for your reply.
The problem is that the report is generating the output based on the users profile option nls_numeric_characters.
I have tried to override the users profile option in the before report trigger without any luck. I can alter selects so the query gets the numbers in the right format but then I would have to go through all queryes and reports which seem a bit wrong? Especially for the standard Oracle reports.
BR Kenneth

Similar Messages

  • Pictures and text boxes in rtf template

    Hi there,
    are there any general rules for applying pictures and text boxes to rtf-templates?
    As far as I have experienced, the text boxes are not shown when generating a report. Is it generally not possible to display text boxes? Are there any work arounds?
    Thank you,
    BR
    Lena

    Hi,
    do you mean instead of text boxes?
    Yes, that is no pborlem.
    Are there any known issues regardings pictures and any other design elements?
    Thank you!
    BR
    Lena

  • Data of one group not getting displayed (in rtf template)

    Hi
    We have build one rtf template it has 2 sectrions one is main section where data is being displayed with out any issues.
    where as for Sub section data is not getting displayed though there is data in xml file
    1) Main section
    <[email protected]:G_ORDER?>
    <?for-each:G_PART_NUM?>
    data in this porting is getting displayed
    <?end for-each?>
    <?end for-each?>
    2) Sub section at the end of page
    <?for-each:G_SCH_SCH_B?>
    data in this portion is not getting displayed
    <?end for-each?>
    Regards
    Kamalakar.G
    Edited by: kamalakarg on Jul 13, 2012 8:47 PM

    Please, post sample XML and desired output.

  • How to use special characters in rtf template?

    Hi,
    We are using .rtf template to print an invoice in pdf format.
    Now the requirement to put special character under footer section as below.
    "New York • London • Houston • Berlin • Vienna • Sydney • São Paulo • Singapore "
    I use same in rtf template but report output showing as below
    "New York ? London ? Houston ? Berlin ? Vienna ? Sydney ? São Paulo ? Singapore " .
    I tried with placeholder column but no luck.
    Can anyone help me?
    Thanks in advance!!

    hi,
    find in this link
    Count Number of Groups

  • Grouping and Sub total Problem in Template Builder

    Hi,
    Please help me out to sort the problem am getting in template builder.
    am here by attaching the xml and RTF which i have done. please go through the files and help me sort the problem.
    <LIST_G_REQ>
    <G_REQ>
    <BUYER_ID>DENIECE</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>1</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>THUGHES1</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>12</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>VACHAVEZ</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>19</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>KAJIKAWA</BUYER_ID>
    <BUYER_GROUP>2</BUYER_GROUP>
    <BUYER_SUBGROUP>AP</BUYER_SUBGROUP>
    <REQ_TOT>25</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>MSVIC</BUYER_ID>
    <BUYER_GROUP>2</BUYER_GROUP>
    <BUYER_SUBGROUP>AP</BUYER_SUBGROUP>
    <REQ_TOT>171</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>FESPINOZ</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>C&amp;R</BUYER_SUBGROUP>
    <REQ_TOT>19</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>ASEJH</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>16</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>BFINLEY</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>23</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>JSMETANA</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>21</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>SAVANCIL</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>84</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>CALANE</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>CWA</BUYER_SUBGROUP>
    <REQ_TOT>28</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>KATHYR</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>CWA</BUYER_SUBGROUP>
    <REQ_TOT>13</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>STEFANIF</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>CWA</BUYER_SUBGROUP>
    <REQ_TOT>1</REQ_TOT>
    </G_REQ>
    </LIST_G_REQ>
    This is my xml file please let me know how to do the groupingbased on "BUYER_SUBGROUP" and also "BUYER_GROUP_TOTAL" and "BUYER_SUBGROUP_TOTAL" in RTF.
    Thanks in advance

    Hi,
    I see that your data is having this format
    <LIST_G_REQ>
    <G_REQ>
    <BUYER_ID>DENIECE</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>1</REQ_TOT>
    </G_REQ>
    </LIST_G_REQ>
    So to group by BUYER_SUBGROUP, your code will be
    <?for-each-group:G_REC;BUYER_SUBGROUP?>
    <?end for-each?>
    I dont know what you mean by BUYER_GROUP_TOTAL and BUYER_SUBGROUP_TOTAL here.

  • Query on fetching the no.of days between Invoice date and due date in rtf template embedded BI Publisher Report

    Hi Experts,
    We have a requirement to fetch the value of 'No of days' between Invoice date and due date (Two variable date fields on the template) in an Analysis.
    Please let me know the procedure of how to achieve the same.
    Regards,
    Rev

    it's good for ideas but implementation a bit different
    Oracle Business Intelligence Publisher Report Designer's Guide
    This function provides a method to get the difference between two dates in the given locale. The dates need to be in "yyyy-MM-dd" format. This function supports only the Gregorian calendar. The syntax is as follows:
    <?xdoxslt:date_diff(‘format’, ‘YYYY-MM-DD’, ‘YYYY-MM-DD’, $_XDOLOCALE, $_XDOTIMEZONE)?>
    where
    format is the time value for which the difference is to be calculated
    Example:
    <?xdoxslt:date_diff(‘d’, ‘2006-04-08’, ‘2006-04-01’, $_XDOLOCALE, ‘America/Los_Angeles’)?>
    returns
    -7

  • Find and replace in RTF Template

    Hi,
    I'm using a if statement in my template, but i need to change a value within this statement. It's being used multiple times, therefor it would be easier to do a find and replace, is there a way to do a find and replace within the RTF template? Already openede it in Notepad++, but no luck
    Osman

    I don't think there is a way to find and replace all.. You can view all the code by using Field Browser -> Show All and then replace the code and update one by one from there..
    Thanks,
    Bipuser

  • Terms and Conditions in PDF PO with RTF Template

    Hi Gurus,
    We have a custom RTF template for the PDF PO. I want to add the Terms and Conditions into this RTF template that should start after the last page of each PO I looked into the Oracle standard template also but it is in XSL-FO format. I tried the way the Terms and Conditions are added into the Oracle Standard template into my custom RTF template but it didn't work for me. Can any of please help. Need your assistance.
    Regards,
    KM

    Just before the end of your for-each loop make a call to a sub-template
    Your sub-template will have the terms and conditions.
    regards
    Jorge

  • Not able to use @section and Sort within a group in RTF Template

    When i try to use sort with [email protected] in my template, the Output Post processor is throwing the following exception
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 31, Column 84>: XML-22047: (Error) Invalid instantiation of 'xsl:sort' in 'fo:flow' context.
    My tags in the RTF template are as below:
    <[email protected]:G_PERSON_ID;./DEPT?><?sort:DEPT;'ascending';data-type='text'?>
    -- there are 2 more groups within this.
    <?end for-each-group?>
    I don't get the error if i remove @section from the above tag in my RTF template.
    OR
    IF i remove the sort tag and keep the @section , it still works.
    I need the "sort" so that i can sort the output by department number and I need the "section" so that i can acheieve context based header title for the page using the tag given below in the header area of the word RTF doc. The DEPT number should change as per the data shown in the report.
    DEPT <?DEPT?> CLASSIFICATION SENIORITY LISTING BY CLASS CODE & DATE
    I am stuck with either being able to use the Sort or the Header feature but not both.
    I guess that section is needed for the context based header title to work, because all the data shown in the current page should correspond to only one single DEPT value (to make the Header title consistent with the data). But i dont get why i am not able to sort. The exception from OPP simply beats me. Please help!!
    I am using the XML Pub Desktop 5.6.2 to develop my templates.
    Is there any way to acheive this? Can someone throw some light on this.
    Thanks in advance.

    Help About says I'm on 20.0.1
    Up until last week, I was able to use the tab key when typing emails and other multi-line text boxes.
    Suddenly the behavior of the tab key changed. This isn't the first time. It's been quite a while ago that the function of the tab key changed from indenting to moving around the page, then after some time it changed back to indenting.
    Can we get this fixed and leave it alone, please?
    I may give one of those add-ins a try, but my problem with add-ins is that they break when FF is patched or upgraded, then I'm left with out the solution they provide.
    Can we just fix Firefox, please?
    Thanks,
    Frank
    P.S. Another potential fix I came across suggested starting FF in safe mode to see if the problem goes away. It does not. It seems to be a change to FF that appeared after an update last week. On or just befor 24 Apr.

  • Trouble with Group By in RTF Template

    Hello All,
    I'm very new at RTF Template building, and I've spent hours trying to figure this out with no avail. I'm using BIP Desktop add-in for Word to load in my XML data and create some tables and charts. Right now I'm able to create a detail level table on the RTF, but I want to also create a summary level table. The summary table is where I get stuck, as I can't get my group by statements to work. I've tried to insert a table/form and use the table wizard, but neither work.
    My detail level table has customer and shipments (among a few other noncritical fields). I just want a summary table to show customer and total number of shipments (simple count function). Right now, my output looks something like this:
    Customer     Customer
    Brian Jones     Shipment 
         1
         1
         1
         1
         1
         1
         1
         1
         1
    So it groups by the customer fine, but doesn't actually count the shipments. It assigns a 1 for each shipment number, but doesn't actually count the fields to give a Brian - 9.
    Again, I'm very new at this, so this might be very basic. Also, if there are any good resources on RTF template building, I'd love some help on learning to do this stuff better.
    Thanks!
    Alex

    Don't you want to actually find the sum of the shipments to give you a count of shipments for the customer? Have you tried using the sum function for your shipments field?
    You could insert the shipment field, select function sum (from the drop-down menu) and check the 'On grouping' box..
    Send me your template and sample XML to [email protected] if you would like.

  • Help with RTF and special characters

    Hi,
    I'm curently working on apex 4.1 and i want to generate an .rtf file which i fill with the information coming from a form.
    I am doing so without any problems when it comes to normal Americam letters.
    I face a problem when i wan't to dynamicly change my subsctitution phrases in the .rtf template with czech characters (á,é...), because i can't just replace the word with these characters in the rtf because it expects to receive some escape formats and not the letter itself.
    Can anybody help me figure this one out?
    I've tried creating a library of the symbols and their asci code and replacing them in the file but they don't always work. I even saved a .doc file in .rtf and copied the code from that one in my .rtf and it doesn\t work. In the original file i have some characters in my file i have other characters eventhough the code is the same...
    I'm puzzled by this one and i don't know what to do.
    Thank you,
    Alex.

    Hi,
    Yes i wan't to remove information from the clob.
    I have an .xml template and if i don't have any updates on some chapters i wan't to remove them.
    Until now i have tried to replace the strings that i don't need using the replace function, but sometimes the string that i wan't to replace is longer than 32726 chars.
    I have comented the xml clob with tags like "<!-- [[$$1.0]] start -->" and "<!-- [[$$1.0]] end -->" and using the instring and substring functions i get the piece of information i wan't to remove.
    "select substr(r.template_content,instr(r.template_content,'<!-- [[$$1.0]] start -->') , instr(r.template_content,'<!-- [[$$1.0]] end -->')-instr(r.template_content,'<!-- [[$$1.0]] start -->'))
    from rtf_templates r
    where r.template_id=3"
    and then i use " clob := replace(clob,get_substr)"
    usualy it works but sometimes the length of the subtr is larger than 32767 chars and that's when i have problems.
    Any ideeas on how to remove the chunks of info from the clob?
    Thank you.
    Alex.
    I have changed the get_substr select because i wrote it wrong :) now it's ok
    Edited by: Banu Alexandru on 06.06.2012 08:44

  • 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

  • RTF Template: sums with nested groups

    Hi all,
    i've got quite a pickle of a problem it seems ...
    my data structure looks something like this:
    <COMPANY>
    --<STORE>
    ----<DEPARTMENT>
    ------<ITEM></ITEM>
    ----</DEPARTMENT>
    --</STORE>
    </COMPANY>
    multiple companies can have multiple stores, which in turn have multiple departments, which also in turn can have multiple items.
    my select statement looks something like this:
    select company_id,
    store,
    department,
    item,
    sum(qty) as my_sum
    from
    table_1, table_2, table_n
    where ...
    group by ...
    order by company_id;
    my xml data template grouping looks something like this:
    <group name="G_company" ...
    --<element name="E_company" ...
    --<group name="G_store" ...
    ----<element name="E_store" ...
    ----<group name="G_department" ...
    ------<element name="E_department" ...
    ------<group name="G_item" ...
    --------<element name="E_item" ...
    --------<element name="E_item_total" value="my_sum" ...
    ------</group>
    ------<element name="E_department_total" value="G_item.E_item_total" function="SUM()" />
    ----</group>
    ----<element name="E_store_total" value="G_department.E_department_total" function="SUM()" />
    --</group>
    </group>
    my report currently looks something like:
    ------------------<b>Store</b>--------<b>Dept</b>---------<b>Dept</b>---------<b>Item</b>-----------<b>Item</b>---------------<b>Store</b>-----------<b>Dept</b>----------<b>Item</b>-----------<b>Item</b>
    <b>Company</b>---Townsville---TDept_1------TDept_2-----TDItm1----------TDItm2-------------Newcastle------NDept1----------NDItm1--------------NDItm2
    ---CompanyA------2----------------4------------3---------------2---------------1------------------1-------------------3----------------2-------------------4
    ---CompanyB------1----------------2------------4---------------5---------------2------------------1-------------------6----------------3-------------------1
    if i just focus on the Store --> Department --> Item, i achieved this in my RTF template by doing something like the following:
    <table>
    --<tr>
    ----<td><[email protected]:G_store;E_store?>Store</td><td><[email protected]:G_department;E_department?>Department</td><td><[email protected]:G_item;E_item?>Item<?end for-each-group?> <?end for-each-group?> <?end for-each-group?> </td>
    --</tr>
    --<tr>
    ----<td><[email protected]:G_store;E_store?><?E_store_total?></td><td><[email protected]:G_department;E_department?><?E_department_total?></td><td><[email protected]:G_item;E_item?><?E_item_total?><?end for-each-group?> <?end for-each-group?> <?end for-each-group?> </td>
    --</tr>
    </table>
    as you can see, the store --> department --> item go across the report horizontally.
    my problem is i want to have grand totals for each column, like:
    ------------------<b>Store</b>--------<b>Dept</b>---------<b>Dept</b>---------<b>Item</b>-----------<b>Item</b>---------------<b>Store</b>-----------<b>Dept</b>----------<b>Item</b>-----------<b>Item</b>
    <b>Company</b>---Townsville---TDept_1------TDept_2-----TDItm1----------TDItm2-------------Newcastle------NDept1----------NDItm1--------------NDItm2
    ---CompanyA------2----------------4------------3---------------2---------------1------------------1-------------------3----------------2-------------------4
    ---CompanyB------1----------------2------------4---------------5---------------2------------------1-------------------6----------------3-------------------1
    ---<b>Total</b>------------3----------------6------------6---------------7---------------3------------------2-------------------9----------------5-------------------5
    so i did a SUM on each of the E_store/department/item_totals like:
    <?sum(current-group()/E_store_total)?>
    now that works for E_store_total ... but not for E_department_total and E_item_total!
    it seems BI Publisher doesn't like sums used with inner loops.
    because if i extract just the column for E_department, the grand total value at the bottom is correct!
    but once i put back the outer store loop, it breaks.
    what i am currently getting with this is:
    ------------------<b>Store</b>--------<b>Dept</b>---------<b>Dept</b>---------<b>Item</b>-----------<b>Item</b>---------------<b>Store</b>-----------<b>Dept</b>----------<b>Item</b>-----------<b>Item</b>
    <b>Company</b>---Townsville---TDept_1------TDept_2-----TDItm1----------TDItm2-------------Newcastle------NDept1----------NDItm1--------------NDItm2
    ---CompanyA------2----------------4------------3---------------2---------------1------------------1-------------------3----------------2-------------------4
    ---CompanyB------1----------------2------------4---------------5---------------2------------------1-------------------6----------------3-------------------1
    ---<b>Total</b>------------3----------------4------------3---------------2---------------1------------------1-------------------3----------------2-------------------4
    it is doing the grand total for Store correctly, but it just gives me the first row for the other grand totals.
    i have tried:
    1. using the CUBE function in my SQL query, which gives me the results i want with all the totals i want, except i cannot seem to translate it into XML.
    2. trying to use the pivot table option but i can't seem to ever get it to work the way i want.
    3. using a separate sql query to retrieve the grandtotals but that doesn't work either because of the multiple looping required.
    i'm at a complete dead end, any help would be really appreciated!
    ps. i'm a very fresh newbie

    Hi Vetsrini,
    thank you very much!
    when you said to use current-group i was confused because i thought i was using it, but when i opened up the RTF template i realized you meant the actual looping.
    so instead of doing:
    <[email protected]:G_DEPARTMENT;E_DEPARTMENT?>
    <?sum(current-group()/E_STORE_TOTAL)?>
    i should have been doing:
    <[email protected]:current-group()//G_DEPARTMENT;E_DEPARTMENT?>
    <?sum(current-group()/E_ITEM_TOTAL)?>
    thanku!
    S.

  • Problem with Cross-tab report (RTF Template) null values, current-group()

    Hi, experts!
    I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
    My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
    Here is my data structure (XML file):(Look the images for details)
    http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
    =======================
    WITH GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
    When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
    http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
    And this is my code I'm using inside the RTF template with groups:(Look the images for details)
    http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    =======================
    WITHOUT GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
    When I generate one cross-tab there is no problem: (Look the images for details)
    http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
    This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
    http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
    Can someone give me a hand to deal with this?
    Thank you!

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Printing Chinese characters in XML Publisher - using RTF Template

    Hi All,
    I have to build RTF template for invoices report.
    When i run the report for US/UK operating units , it is working fine. But when i run the report for China invoice. Chinese characters were displaying like ?????
    Can any one help me how to fix this?? it is urgent issue...
    Thanks,
    MG

    Pl post details of OS, database and EBS versions, along with the database characterset.
    Are you creating PDF output ? Can you print Chinese characters when using US/UK operating units ? Are you using Pasta ?
    How to Generate PDF Output With UTF8 in R12? [ID 778970.1]
    HTH
    Srini

Maybe you are looking for


HashFlare