How to calculate date in xml publisher?

Hello,
I want to calculate a value of time difference in XML publisher. The template is rtf file. One of field is due_date, How to calculate the value sysdate() - due_date in rtf file? Could anyone help me? Thank you very much!!!!

Hi,
When I used this date_diff. occurred following errors. Could you have any others solutions? Thank you very much!!!
Oracle XML Publisher 5.6.3
Updating request description
Waiting for XML request
Retrieving XML request information
Preparing parameters
--XDOException
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.invokeNewXS
Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: '?xdoxslt date_diff('d','2010-09-01','2010-09-05','en-US',1)'.
     at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
     at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
     ... 17 more

Similar Messages

  • How to remove group in XML Publisher template

    Hi All,
    How to remove group in XML Publisher template while desining as below is one example in that i want to remove the group no 2,3,4 or G Supp Seq,List G Audit,G Audit and want the output of line no 1 and 5 and then 1 or Batch / Entry/ Category/ List G Supp Seq/C Line No / C Transaction / C Document//C Credit/C Debit/C H Seq Name.
    Example:
    1) Batch / Entry/ Category/ List G Supp Seq                    /C Credit/C Debit/C H Seq Name                    
    2)          G Supp Seq
    3) List G Audit
    4) G Audit     
    5)     C Line No / C Transaction / C Document
    Kindly help how to generate the output without the line no 2,3,4.
    Regards,
    Sushant

    Sushant,
    you can try to design the RTF by Regrouping the XML data based on your requirement then you may get proper order.
    Please see the Regrouping XML concept in the user guide.
    Regards,
    Prasad Raju

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to send data back to publishing stream

    Hi,
    Environment: ActionScript3.0, FMS, Flash Project created in Flash Develop
    How to send data back to publishing stream? I need to send data back to publishing stream.
    Using NetStream.send() we can send data to subscribers but is it possible to send data from subscriber back to publisher using any NetStream method.
    One other solution to this is remoteSharedObject, but if it is possible with NetStream class then let me know.
    Thanks

    There are a number of ways to extract data from CRM On Demand including:
    * Export - manual process, generate CSV file containing CRM On Demand data
    * List/Analytics - manual process, export the contents of a report of list to a CSV
    * Web Services - programmatic, develop an application that queries for data within CRMOD
    * Integration Events - programmatic, use workflow to trigger event creation and then poll for events to know when an operation occurs on a record (i.e. Insert of new Account record)
    As for getting that data into another system, that will depend on the system and the methods available for inserting data that it makes available.
    Hope this helps.
    Thanks,
    Sean

  • Try to use dynamic sql connection for additioal data for xml publisher

    I understand that the xml publisher is using template to merger the xml data output (say from Oracle report).
    We have some Oracle seeded report and do not wish to modify these report, but we do need to add additional data to these reports. In the past, the tool we used has the capability to make dynamic sql calls to get these additional data. Can this be achieved in xml publisher?
    I did noticed that the template builder has two options for upload data source: from a data file or from a sql connection, but seems they can not be used together. Not much document I can find for this. Thank you in advance for your help.
    Frank

    Hi All,
    Sandeep: if u have the solution pls send to my email id [email protected]
    ill really appriciate u r response.
    I have the same requirement to develop AR Invoice Report in XML publisher, actually it was developed using Optio Layout.my issue is the actual AR Invoice RDF contains 20 records and it showing the 20 recodes when we run that program (concurrent program output) after that while printing this report uisng the OPTIO layout (The Optio system is fetching some more records (10 records)) it printing total 30 records. i mean here the OPTIO is handling some pl/sql code i guess..
    so now how we can handle this requirement using XMLP.I am using RTF Templates with 5.6.2 v. Is it possible to do the same manner how the OPTIO was doing. Is this possible with any other Templates ?. or we need to customize the RDF itself ? .but I know that I can go ahead and modify the existing out-of-the-box report, but I do not want to do that. I do not have control over the XML that is generated since the XML is generated when the report is run. Is there any way to retrieve the extra information AFTER the xml has been generated and BEFORE the template is applied ?
    Thanks,
    Rad

  • How to print output of XML Publisher report in different trays of a printer

    Hi All,
    I have a requirement in XML Publisher Report. I need to print all pages other than last one in one tray of a printer and the last page has to be printed in another tray of the same printer.
    Can anyone help me out...
    Thank You..

    I do not think it is possible to send all the pages to one tray and send only the last page to a different tray. However, you may review the following notes:
    Note: 357402.1 - How to Print the Output to a Different Paper Size Using XML Publisher Delivery Manager?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=357402.1
    Note: 394130.1 - How To Enable Printer Options Such As Duplex Printing Or Tray Selections For Bitmap Concurrent Programs
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=394130.1

  • How to do subtemplate Using XML Publisher Template Builder for Word 5.6.2

    Is it possible to do subtemplate (similar to subreport in crystal report) using XML Publisher Template Builder for Word 5.6.2?. If yes, can anyone explain how to call or import subtemplate from main template?
    Thank you
    V.Piraba

    Hi V. Piraba,
    Here is how it works for me in Microsoft Word 2003. I'm not sure if it will work in Word 5.6.2.
    Creating Subtemplates
    1) Make sure you fill in the “Territory” field when creating Subtemplates. Otherwise there will be no way to import the Subtemplate into another Template. The Import command requires the Territory field to call it from other Templates. You will get a big Java error if you try to import a Subtemplate that does not have the Terriroty field populated.
    Importing Subtemplates
    1) Place the following syntax at the beginning of your XML Publisher template to import a subtemplate (in Oracle Applications)
    <?import:xdo://XDO.[Template Code Name].English.US?>
    Example: <?import:xdo://XDO.WC_SUBTEMPLATE_LOGOS.English.US?>
    2) Use the following commands to importing Subtemplates from local/network drives (outside of Oracle Applications):
    <?import:file:C:/Temp/WC Subtemplate - Logos.rtf?>
    <?import:file:L://Templates/WC Subtemplate - Logos.rtf?>
    <?import: file:///C:WorkChemical.xsl?>
    You can email me at [email protected] if you have further questions.
    Hope this helps!
    Dan

  • How to add data in xml file

    Hi ALL
    I want to add new fields on seeded EBS page to store their values in hr_api_transaction table whoch contain information of other fields on that page which are seeded
    but that table has one column which stores xml file and that xml file has all information about that page's fields
    how can I store my custom fields values in that xml file ?

    Hi,
    As Andy said,  add data to an xml file is overwriting, if you mean append data to xml file, please look this article:
    http://codesamplez.com/programming/linq-to-xml-tutorial, Since this issue is more related to ASP.net, you could also ask this issue in asp.net forum:
    http://forums.asp.net/
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to calculate Date and Days

    Hi BW Experts,
    I have requirement, I have field original GI Date and  it is calculating based on 'Original promise date'-'Transport time'. Formula is 'Original GI Date' = 'Original promise date'-'Transport time'.
    We are getting data for original promise date as Date format and  Transport time as Days (ex: 1 or 2 days).
    Here, how can I convert into Date or how can I calculate Date and Days. I am working on BW3.5 .
    Please help me how can I overcome this requirement.
    Points will be assign.
    regards
    Yedu.

    Hi Ventatesh
    It's not a problem
    You can subtract days from date to get the resultant date
    Original Promise time  =  GI Date  - Transit time ( in days)
    Add Original Promise Time in your data target and fill that up with the above rule.
    If the above is not working you can use this function module
    DATE_IN_FUTURE
    Here you need to pass Date and Days to get future date. Only trick you need to apply that if the transit days is 5 days, you pass -5 to this function module.
    But this function module is not available in BW system. Just copy the code from ECC system and create a Z FM for BW system
    Regards
    Anindya
    Edited by: Anindya Bose on Feb 9, 2012 4:36 AM

  • How to populate data from XML to SQLserver 2008

    Hi 
    I have following XML file data. I need to create table in sql sever and load the data. I dont know how to read and load the file located at C:Drive.
    Please kindly help me on loading the data into table
    This is what I see in the file located on C drive - invoiceXML: 
    <?xml version="1.0" encoding="utf-8"?>
    <CLinv xmlns="http://www.sdfsfdfsfd.com">
      <billCom xmlns="">billCom1</billCom>
      <remittance xmlns="">
        <remCom>remCom1</remCom>
      </remittance>
      <summary xmlns="">
        <title>title1</title>
        <TBAmt>1</TBAmt>
        <totalNC>1</totalNC>
        <accountAging>
          <past3DAm>1</past3DAm>
          <tPDe>1</tPDe>
        </accountAging>
        <items>
          <item>
            <itNo>1</itNo>
            <NC>1</NC>
          </item>
          <item>
            <itNo>23</itNo>>
            <NC>23</NC>
          </item>
          <item>
            <itNo>34</itNo>
            <NC>34</NC>
          </item>
        </items>
      </summary>
      <GrpDet xmlns="">
        <detailGrouping>
          <grouping>grouping1</grouping>
          <details>
            <detail>
              <CNo>CNo1</CNo>
              <Namtt>1</Namtt>
            </detail>
            <detail>
              <CNo>CNo2</CNo>
              <Namtt>23</Namtt>
            </detail>
            <detail>
              <CNo>CNo3</CNo>
              <Namtt>34</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping2</grouping>
          <details>
            <detail>
              <CNo>CNo4</CNo>
              <Namtt>0.9</Namtt>
            </detail>
            <detail>
              <CNo>CNo5</CNo>
              <Namtt>1.1</Namtt>
            </detail>
            <detail>
              <CNo>CNo6</CNo>
              <Namtt>23</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping3</grouping>
          <details>
            <detail>
              <CNo>CNo7</CNo>
              <Namtt>34</Namtt>
            </detail>
            <detail>
              <CNo>CNo8</CNo>
              <Namtt>0.8</Namtt>
            </detail>
            <detail>
              <CNo>CNo9</CNo>
              <Namtt>1.2</Namtt>
            </detail>
          </details>
        </detailGrouping>
      </GrpDet>
    </CLinv>

    Sorry This is the correct Data:
    <?xml version="1.0" encoding="utf-8"?>
    <CLinv xmlns="http://www.sdfsfdfsfd.com">
      <billCom xmlns="">billCom1</billCom>
      <remittance xmlns="">
        <remCom>remCom1</remCom>
      </remittance>
      <summary xmlns="">
        <title>title1</title>
        <TBAmt>1</TBAmt>
        <totalNC>1</totalNC>
        <accountAging>
          <past3DAm>1</past3DAm>
          <tPDe>1</tPDe>
        </accountAging>
        <items>
          <item>
            <itNo>1</itNo>
            <NC>1</NC>
          </item>
          <item>
            <itNo>23</itNo>>
            <NC>23</NC>
          </item>
          <item>
            <itNo>34</itNo>
            <NC>34</NC>
          </item>
        </items>
      </summary>
      <GrpDet xmlns="">
        <detailGrouping>
          <grouping>grouping1</grouping>
          <details>
            <detail>
              <CNo>CNo1</CNo>
              <Namtt>1</Namtt>
            </detail>
            <detail>
              <CNo>CNo2</CNo>
              <Namtt>23</Namtt>
            </detail>
            <detail>
              <CNo>CNo3</CNo>
              <Namtt>34</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping2</grouping>
          <details>
            <detail>
              <CNo>CNo4</CNo>
              <Namtt>0.9</Namtt>
            </detail>
            <detail>
              <CNo>CNo5</CNo>
              <Namtt>1.1</Namtt>
            </detail>
            <detail>
              <CNo>CNo6</CNo>
              <Namtt>23</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping3</grouping>
          <details>
            <detail>
              <CNo>CNo7</CNo>
              <Namtt>34</Namtt>
            </detail>
            <detail>
              <CNo>CNo8</CNo>
              <Namtt>0.8</Namtt>
            </detail>
            <detail>
              <CNo>CNo9</CNo>
              <Namtt>1.2</Namtt>
            </detail>
          </details>
        </detailGrouping>
      </GrpDet>
    </CLinv>

  • How to write data to xml file?

    Hi,
    I have done a project which read data from a web then write in log file.
    Now i want to write data in xml file.
    how to write?
    i read some java and xml tutorial, quite quite difficult.
    Who can give a simple example with some comments?
    If you also give some tips on learning java web services, i will be very appreciated.
    Thanks
    Yang Bin

    Choose Xerces2.4 to serialize the DOM object is an option.
    javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
    java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
    below is the source file: XercesTest.java
    //JAXP
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    //APACHE SERIALIZE FUNCTION
    import org.apache.xml.serialize.*;
    class XercesTest
    public static void main(String[] args) throws Exception
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse( new File( args[0] ) );
    File f = new File( "copy_of_"+ args[0] );
    OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
    FileOutputStream fout = new FileOutputStream( f );
    XMLSerializer ser = new XMLSerializer(fout, format );
    ser.serialize( doc );
    hope it's helpful
    land

  • How to write data into xml through web service

    Hi,
      I have a requirement to write the data into xml through a web service .send me related links and sample code if any.

    hi kiran,
      write the data into xml : We need suitable set of java Beans for handling WebService Data.
       However, there are cases when you may prefer an alternate mapping, or when there just isn't a well-defined mapping for your particular schema construct (xsd:choice is a common example). For these cases, IBM® WebSphere® has introduced a new feature called Custom Data Binding that allows you to integrate alternate data binding technologies like JAX-B, EMF/SDO and XML beans, as well to define your own XML schema to Java mappings. This article provides an overview of the technology and how you can get started integrating it into your application.
    GO THru THis Links :
    http://www-128.ibm.com/developerworks/websphere/library/
    techarticles/0601_gallardo/0601_gallardo.html.
    Hope It Helps.
    Thanks
    Varun CN

  • How to Insert Image in XML publisher Report

    Hi Forum,
    I have created rtf file for xml report and in this i inserted one Image. When run the request from apps environment and while checking the output in excel format, Image is not displaying..
    Please advice me.
    Thanks & Regards,
    Nag.CH

    Hi;
    What is your EBS and Os?
    Please check below note:
    Image Does Not Display In XML Publisher Excel Output [ID 736897.1]
    Regard
    Helios

  • How to extract data from xml and insert into Oracle table

    Hi,
    I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
    There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
    I need to extract the values of these columns and insert into the table
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>

    Re: Insert from XML to relational table
    http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=

  • How to prevent data-sources.xml from being included in EAR

    I cannot get rid of the data-sources.xml file in my EAR file in the meta-inf folder.
    Deselecting the "Bundle Default data-sources.xml during deployment" in my preferences didn't have any effect. I also tried shutting down/restarting JDeveloper just in case it was cached.
    I also tried adding an exclude filter for data-sources.xml in my deploy profile for both Web files and WEB-INF/classes.

    The way I resolved this was to create the data-sources.xml, right click it, select Properties then uncheck Auto-update data sources.xml. That way it stays empty (hopefully).

Maybe you are looking for

  • Can we change the net value in the conditons of the sales order?

    Hello: I have below scenario: Sales order: Material           A PR01 (Price condition)               98 USD ZADD (Discount condition)        to be calculated by SAP R3 system (?%) Net price                                    80 USD (expected) Due to

  • Wrong coding of german umlaut in XML/XSLT output

    I'm using Oracle 8.1.5 with XSQL Servlet. The contents of my database contains german umlaut. Visiting the HTML output using Netscape/WinNT seems to be correct, but when I save the page the saved page contains a unknown (for me!) hex conversion of th

  • HT5163 where do I find the Access Point Name?

    I have a iPhone 4s and changed my sims card, the new provider instructions are to change my "Access Point Name" to get date

  • Ejb rownum error

    Hi all, Im using jdeveloper 11g. I have this query in my ejb object "select o.field from table o where rownum < 5". When i run my test client i get this error: javax.ejb.EJBException: EJB Exception: ; nested exception is:      javax.persistence.Persi

  • Adobe is constantly crashing

    D68F0FD4-ED61-45B1-9CD7-A237509D7BCA 5/2/15 1:21 AM C51AE090-BCD7-48E3-BB16-2FDBFBB33FEC 5/2/15 1:20 AM A395CCF6-0D1C-477D-8EFB-154E8CD8EDBF 5/2/15 1:20 AM bp-08f8427c-0245-405d-9c12-b039e2150502 5/2/15 1:18 AM bp-17a41c52-54c0-4c68-9e36-7c8d42150502