Sort Date format in Oracle XML Publisher

Hi All,
I have a requirement like trx_date sort. i have taken trx_date in dd-mon-yyyy format. now i given sort option like this..
<?for-each:G_TRX_ORDER_NUMBER?><?sort:TRANSACTION_TYPE?><?sort:DUE_DATE;'ascending';data-type=date?> <?sort:TRX_NUMBER?>
now i have 3 dates
07-NOV-10
20-MAY-11
20-DEC-10
using above sort option.. this dates are not coming as per the ascending order.
Can any one tell me what i have to ?
Thanks

What is your application release?
Does the sort work for other data types?
What if you change "<?sort:DUE_DATE;'ascending';data-type=date?>" to "<?sort:DUE_DATE;'ascending';data-type='date'?>", does it make any difference?
Few examples about the sort can be found in these docs/links.
How to Group Data Dynamically at Runtime in a BI/XML Publisher RTF Template? [ID 1062816.1]
Sorting Data In eText Template [ID 1263511.1]
Oracle XML Publisher User's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
Thanks,
Hussein

Similar Messages

  • Date Format issue in xml publisher

    Hi,
    I have a date column with the format of 'DD-MON-YY' in database. When i try to fetch this column value thro' sql query in xml publisher with data template, its giving the column value as '2007-01-01T00:00:00.000-08:00'.
    Now i want to convert '2007-01-01T00:00:00.000-08:00' format value to 'DD-MON-YY'.
    Can anyone please help me out to solve this problem to convert given date format to required date format.
    Regards,
    Sadanand

    Hi,
    when you have a date column in the database, than the format is not 'DD-MON-YY' .
    'DD-MON-YY' is the default representation as string of a date column in your database and could be different in others (defaults are set depending the NLS-Settings).
    If you use rtf-templaes you had to say the form-field, that the type is date and then you can set your format mask. Per default even date fields are represented in rtf-templates as type regular text, and so the default for date columns contains every informationn of a date column.
    Regards
    Rainer

  • How to print Barcode data in Oracle XML Publisher Report

    Hi,
    We have an rdf report which prints Bar code in the starting page based on a custom procedure from MarkView. It works well with Oracle Reports.
    But since the current report was a matrix report, we are changing it to a Linear report through Oracle XML Publisher Report.
    We have all the things possible in the new Oracle XML Report.. But we are unable to print the Bar code data which is BLOB in the XML Report..
    Can anyone help me on this? We have UAT dates around the corner..
    We have an RTF Template .
    Help asap.
    Thanks
    Abhilash

    Hi Abhishek,
    Bar code Registration Steps in XMLPublisher responsibility:
    1.    Go to responsibility XML Publisher Administrator
    2.    Open Administration
    3.    Open Font Files Tab
    4.    Create Font File
    5.    Give Font Name : XX_BARCODE
    6.    File : Browse Barcode file
    7.    Apply
    8.    Go to Font mapping Tab
    9.    Open Create Font Mapping Set
    10.    Give Mapping Name: XX_BARCODE
    11.    Give Mapping Code: XX_BARCODE
    12.    Type : FO TO PDF
    13.    Apply
    14.    Open Tab Create Font Maping
    15.    Font Family: Code39-Digits(This name should be exactly the font name comes in word)
    16.    Style: Normal
    17.    Weight: Normal
    18.    Target Font Type: Truetype
    19.    Continue
    20.    Font : XX_BARCODE
    21.    Apply
    1.    Go to Template Tab
    2.    Query for your template
    3.    Open Edit Configuration
    4.    Click on FO Processing
    5.    In Font Mapping set Give XX_BARCODE
    RTF Template (word):
    1.Design the RTF template
    2.Insert the barcode against reqd field
    3.Make sure to put an * before and after the barcode so that scanner understands the beginning and end
    Please send your rtf ,xml file if you are still facing issues.
    Rgds,

  • Oracle XML Publisher 5.6.2

    Dear All,,
    How to integrate Oracle XML Publisher 5.6.2 report with ADF appication,including passing report parameters.
    thanks

    https://metalink.oracle.com/metalink/plsql/f?p=130:14:5396698038376187095::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,367394.1,1,1,1,helvetica
    MetaLink Note ID: 367394.1

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

  • I want convert string to date format in Oracle

    Dear All
    I want convert string to date format in Oracle,Format is given below
    'Friday, 02 March 2012 2:44 PM' to '02/03/2012 2:44 PM'

    >
    Hi Parwez,
    I want convert string to date format in Oracle,Format is given below
    'Friday, 02 March 2012 2:44 PM' to '02/03/2012 2:44 PM'SELECT TO_DATE('Friday, 02 March 2012 2:44 P.M.', 'DAY, DD MONTH YYYY HH:MI A.M.') from dual;
    As well as what the other poster suggested, look here: http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm#i34924
    HTH,
    Paul...

  • Configuring date format in Oracle 8.1.7

    I have just unloaded records from tables into an sql script file with insert statements. However, the date format for the records that I have unloaded is MM/DD/YYYY. When I try to run this sql script, oracle gives an error, saying it's not a valid month.
    Oracle date format is DD-MMM-YY. How can I change the date format in oracle, so that I could insert these records in?

    If your script does not have explicit TO_DATE conversions (which it should, by the way), like:
    insert into t values (to_date('11/21/2002', 'mm/dd/yyyy'));then you can set the default date format to match the format in your script. So, if your script looks like:
    insert into t values ('11/21/2002');then:
    alter session set nls_date_format = 'mm/dd/yyyy';prior to running the script.

  • Oracle XML Publisher Template Builder 5.5

    I have seen references to this word plug-in in various XML Publisher demos and presentations, but cannot find where to download the plug-in. Could anyone please provide some insight?
    Thanks,
    Brett

    Brett,
    The patch number given in your reply doesn't seems to exist. Here is the patch number I found in Metalink.
    Patch 4239263
    Description XDO/ORACLE XML PUBLISHER TEMPLATE BUILDER PATCH 1.0.0
    Product XML Publisher
    Release Applications 11i
    Platform or Language -------- Platforms --------Microsoft Windows (32-bit)
    Last Updated 14-MAR-2005
    Size 31M (32764293 bytes)
    Thanks, Anbu Kuppusamy

  • Number format issue in XML Publisher from OAF (',.' is replaced by 'u n')

    Hi All,
    I am facing a problem in XML Publisher report. In report I need to display some number fields with 'USD' format. In RTF, data type 'Number' and format '###,##0.00' is selected. If I run concurrent program from oracle core forms using System Administrator > Concurrent > Request, I am able to get correct number format.
    Ex : 123456.00 After Number format : 123,456.00
    Also its working fine from XML Publisher Administrator responsibility (using Preview).
    But problem is when I submit the concurrent request through OAF, I am not getting correct data. ',' is replace by 'u' and '.' is replace by 'n'.
    Ex: 123456.00 In Report 123u456n00
    Checked profile value : ICX: Numeric Character and its set to 1,000.00 at site level.
    Do I need to set character set anywhere in OAF before calling concurrent program?
    I tried to use "alter session set nls_numeric_character = ',.';" by calling stored procedure from OAF. But still its not working.
    Please give me solution for this.
    Regards,
    Sadanand

    Hell - I am running into the same issue? Did you guys find a resolution for this? Please let me know, would really appreciate your help.
    Thanks,
    Dhiraj
    [email protected]

  • Data is repeating in xml publisher report

    Hi,
    We desinged the orcle xml publisher report.
    When we are running the report, the address infromation is repeating in every page.
    We have not mentioned any where the for each logic.
    Can any one help me on this issue.
    We designed the report as 'rdf data mocel' and designed and rtf for this.

    For 11i, pl see the XML Publisher User Guide at http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html on how to achieve this
    HTH
    Srini

  • Date Formats in Oracle Applications Forms and Oracle Self Service

    Can someone tell me what determines the Date format that appears on Oracle Applications Forms and Oracle Self Service ?
    *1.* In Oracle HRMS,all dates i see on the Forms are of the Format "MM/DD/YYYY" but my NLS Parameters are not in this format .I'm giving the results for the NLS parameters below.I thought the date formats are determined by the NLS format.Is there something else that determines the date format appearing on Oracle Applications Forms ?
    NLS_DATABASE_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :AMERICAN
    NLS_LANGUAGE     :AMERICAN
    NLS_TERRITORY     :AMERICA
    NLS_INSTANCE_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :
    NLS_LANGUAGE     :american
    NLS_TERRITORY     :america
    NLS_SESSION_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :
    NLS_LANGUAGE     :american
    NLS_TERRITORY     :america
    *2* What about the profile option : ICX_DATE_FORMAT_MASK ? Does it determine the Date Format for Self Service alone or does it impact the date format appearing on Oracle Applications Forms and the actual database also ?
    *3* If I use a to_date function in ,say, a pl/sql function that i code for some custom requirements,what will be the output of the date format ? Does it take the format given in NLS paramaters or is it determined by anything else?
    Thanks in advance...

    Hi,
    Thanks for your reply ,but I'm still confused ..
    Here are the profile options I'm seeing for one of my instance :
    ICX: Date format mask - 12/31/1999
    ICX: Date language - American English
    ICX: Language - American English
    ICX: NLS Sort - BINARY
    ICX: Territory - United States
    ICX: Numeric characters - NULL
    NLS parameters are given in my original email.
    In Self Service applications(OAF) ,the date format is appearing in "mm/dd/yyyy" format but when i login to Forms based applications ,I see the date format as "dd-mon-yyyy".What determines this date format ?
    How can i make the date format to always return one format everywhere ,be it Self Service (OAF) or Oracle Forms ?
    I'm getting date format related errors for my code because of default date formats changing intermittently when i log into Self Service.I want to know if there is anyway to prevent this from happening?
    Thanks in advance.

  • Problem with date format from Oracle DB

    Hi,
    I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
    I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
    I have changing the field settings in DataSource  to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
    I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
    If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
    Thanks in advance.
    Regards
    Varada

    Thanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
    The issue again in detail
    I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
    The problem is,  I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
    I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
    I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
    Regards
    Varada

  • Date Format in Oracle 11g XE

    Hello everyone,
    I have installed Oracle11XE and noticed that it has the following date format:
          SQL> SHOW PARAMETER NLS_DATE_FORMAT
          NAME                                 TYPE        VALUE
          nls_date_format                      string      RR-MM-DD
    I know that I can change the format for the session, like this:
         alter session set nls_date_format = 'DD-MON-YY';
    I also know that to change the system parameter I need to do the following:
         alter system set nls_date_format = 'DD-MON-YY' scope=spfile; 
         then restart the database.
    However, after I do the latter, the date format is still:
         SQL> select sysdate from dual;
         SYSDATE
         14-11-19
    Could someone tell me why this is happening and correct this?..
    Thanks.

    goodluck247 wrote:
    Hello everyone,
    I have installed Oracle11XE and noticed that it has the following date format:
          SQL> SHOW PARAMETER NLS_DATE_FORMAT
          NAME                                 TYPE        VALUE
          nls_date_format                      string      RR-MM-DD
    I know that I can change the format for the session, like this:
         alter session set nls_date_format = 'DD-MON-YY';
    I also know that to change the system parameter I need to do the following:
         alter system set nls_date_format = 'DD-MON-YY' scope=spfile;
         then restart the database.
    However, after I do the latter, the date format is still:
         SQL> select sysdate from dual;
         SYSDATE
         14-11-19
    Could someone tell me why this is happening and correct this?..
    Thanks.
    NLS_DATE_FORMAT is set at
    system
    client OS
    client oracle session.
    system setting is weakest because it is over-ridden by any other setting.
    See - But I want to store my date as ...

  • Oracle XML Publisher Java API's showing arabic characters as question marks

    Hi All,
    I have created a custom xml publisher report. All the setups in xdo.cfg and the fonts have been installed. When i run the report as concurrent program using the XDODTEXE as the executable this report executes fine displaying the arabic characters in the PDF output.
    I have integrated this xml report to a OAF page where am getting the output of the arabic characters as ???????
    Following is the java code i have used to generate the blob for the xml publisher report.
    pageContext.writeDiagnostics(this,"Inside process Template",4);
    AppsContext appsContext = ((OADBTransactionImpl)pageContext.getRootApplicationModule().getOADBTransaction()).getAppsContext();
    String applicationShortName = dataDefApplication;
    String dataSourceCode = dataDefCode;
    OutputStream os = new ByteArrayOutputStream();
    try {
    DataTemplate dataTemplate = new DataTemplate(transaction.getAppsContext(), dataDefApplication, dataDefCode);
    //Get Parameters
    ArrayList parameters = dataTemplate.getParameters();
    //set Parameter Values as ArrayList of oracle.apps.xdo.dataengine.Parameter
    Iterator it = parameters.iterator();
    while (it.hasNext())
    Parameter p = (Parameter) it.next();
    pageContext.writeDiagnostics(this,"Processing Parameters "+p.getName(),4);
    if (p.getName().equals("P_AUCTION_HEADER_ID"))
    if(AuctionHeaderId != null)
    p.setValue(AuctionHeaderId);
    else
    p.setValue(null);
    dataTemplate.setOutput(os);
    dataTemplate.processData();
    System.out.println(os.toString());
    } catch (SQLException e) {
    System.out.println("SQLException occurred.");
    } catch (XDOException e) {
    System.out.println("XDOException occurred.");
    } catch(Exception e){
    System.out.println("Exception (other) occurred.");
    byte[] xmlb = os.toString().getBytes();
    BlobDomain blob = new BlobDomain(xmlb);
    return blob;
    Kindly let me if i had missed something.
    Thanks
    Anoop

    On a related note, I am seeing a couple of different types of 'incorrect' characters based on different NLS_LANG settings.
    If it is set to AMERICAN_AMERICA.UTF8, I get characters like this:
    رقم الموظ�
    If it is set to ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256, I get characters like this:
    ÑÞã ÇáãæÙÝ
    Do any of you know what these characters are?
    Thanks for any insight.

  • Date format in Oracle 10g XE

    I'm using Oracle 10g XE on Windows Vista and I'm curious as to what determines the date format.
    According to the globalization section in the Oracle installation guide the NLS_DATE format is dependent on the NLS_LANGUAGE setting. In my database the NLS_LANGUAGE is American, the NLS_TERITORY is America and all other NLS_* parameters are blank (default).
    From that I would expect the default date format to be mon-dd-yyyy.
    However when I run SELECT sysdate FROM dual the date is reported as dd/mm/yyyy and this was the default format when I used SQL Developer and when I used the command line SQL*Plus. Obviously something else is determining the date format, but what?

    Your settings are dependent on NLS_LANG on the client.
    They are derived from (assuming Windows) the regional settings of the O/S.
    This means in Western Europe the default 'American_America.WE8MSWIN1252'.
    This makes the default NLS_DATE_FORMAT dd-mm-yy.
    You can override this in the registry, or set up an after logon trigger.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • My iPhone 4s is no longer working.

    My iPhone 4s is no longer working. It kept turning off and on on it's own and i tried to restore it. I pressed the lock and home button. I connected it to itunes as it says. Once in itunes it says the iPhone is on recovery mode and then when it is su

  • Can't "require builder" for Ruby.

    I have not the faintest clue how Ruby and gems work. I'm just trying to compile some software. The following fails: require 'rake' require 'rubygems' require 'builder' Complaining that it can't find a file for builder. This is on a fresh install of r

  • Linking pages in website

    I'm building my first stie in Flash and am currently linking each page with the loadMovie function for each button. This is fine, but I'm finding that I'll need a preloader for each page, which the total pages could equal 20+, to prevent a break the

  • Bizarre problem editing pics on G4

    Hi, Using my G4 Cube, where I have my iPhoto album, I can view thumbnails without any problems (even resize with the slider and still view). When I try and view photos full screen or in edit mode the screen area for photos immediately goes blank. The

  • Aperture 2 or new Lense?

    I am debating on whether I should purchase Aperture or should I buy a 55-200mm lense for my Nikon?