Functions needed in Data Template for XML output

Hi ,
Are there any oracle functions like abs() available
in data_template to be used as follows
group name="listItem" source="Q2">
<element name="amount" value="abs(amount)"/>
<element name="serialNumber" value="TXN_SERIAL_NO"/>
I want the absolute value of the amount .
OR
Can I HIDE the xml Element like
<element name="amount" value="amount"/> (i want to hide this tag in output?)
Please do not suggest to do the same in the SQL query as I am using the SQL query to do something else and resolve another issue.
rdgs
xyz

You can do this abs in Template.
use xdoxslt:abs or abs from xsl.
if you want the data in the xml to habe absolute value , then write pl/sql package to this .
<element name="amount" value="yourpcakage.yourabs(amount)"/>
or do it in sql query, which you dont want to.

Similar Messages

  • Unable to use the Copy function while submitting the program for XML output

    Hi
    when i submit the concurrent program with XML output type, getting the output..
    when i submit he concurrent program using the copy button not able to get the output,
    my observation
    while submitting the program the xml template is not called....
    Diagnostics--> view xml -- able to view the ouput.
    do let me know if any of the steps is missing while registration in the xml responsibility..
    this is only with the custom conc program.. the standard program is working fine...
    do help me out..
    Regards
    Yram

    It's really a little difficult to answer your question without a bit more information. What version of JDeveloper are you using? What's your technology stack?
    If this is JDeveloper 11+g+, with the Fusion technology stack, you can use a technique like the one described here:
    http://groundside.com/blog/GrantRonald.php?title=jdeveloper_11_business_services_cascadin&more=1&c=1&tb=1&pb=1
    If it's JDeveloper 10.1.3, with the default Web technology stack, look here:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#62
    If, as it looks like, this is really a question about generic JSPs (no JSF), you might actually have a bit more success on a generic JSP forum--using scriptlets hasn't really been best practices within JDev since...well, since JSTL became available, really. That was a number of years ago.
    Like I said, there's really no direct way to use Javascript output in a scriptlet--unless you mean something like storing Javascript output in a hidden field, and using the value in a scriptlet on the next request. But by the time Javascript runs, any scriptlet from the current request will already have executed.

  • I Need  Matrix Report Template for XML

    can any one give me matrix report tample for XML
    Edited by: Kamran Riaz on Mar 21, 2009 12:13 AM

    Numbers does not have anything specifically called an event registration template.  There are several options:
    1) search using your favorite search engine (google found quite a few hits when I searched using "Event Registration Template"
    2) build your own in Numbers
    Option (2) shouldn't be too difficult.
    It could look something like:

  • How to create Data Template for creation of BI Pulisher Report

    Hi,
    I m having all the steps for creation of BI Pulisher report using Data Template, like 1st create Data Template, Add new Data Definition, upload Data Template, Create Concurrent Program and run the request, save o/p and create rtf layout, upload Template and again run Concurrent program to view output.
    All steps are working fine.. but my simple question is every time we need to write code for Data Template i.e. xml file ? is there is tool or something which will create this Data template for us using rdf? or is there any other way ?
    Please guide ..
    Regards,
    Priyanka.

    Hi;
    Please see below note which could be helpful for your issue:
    NOTE:367394.1 - About Oracle XML Publisher Release 5.6.2
    Also see:
    http://www.adivaconsulting.com/adiva-blog/item/5-datatemplate
    http://apps2fusion.com/at/51-ps/262-xml-publisher-and-data-template-sql-query-to-develop-bi-publisher-reports
    http://blogs.oracle.com/xmlpublisher/data_extraction/data_templates/
    Regard
    Helios

  • Problem with data template in XML publisher

    When I create data template in xml publisher and save it, I get next message:
    dbase:
    Failed to save data.
    Error occurred when creating xml data.
    undefined
    NaN
    NaN
    dbase is a database server
    JDBC connection name:asu_fox
    JDBC connection URL: jdbc:oracle:thin:@dbase:1521:ora03
    Text in data template:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="data_report_2" description="data template for reports 2 and 10"
    dataSourceRef="asu_fox" version="1.0">
    <dataQuery>
         <sqlStatement name="Q1">
              <![CDATA[select kol_pl,kol_sv,trud_pl,trud_sv,nom_per_p,kod_polu_p,p_v,kod_tmc,liter,kol_skl,nom_per,shifr_dse,shifr_izd,kod_polu,kod_post,trud,kol_m,tip_rin,kod_op,kod_op0,order1,n_val,shifr_usel_val,sum_trud_val,sum_trud_val_sv from reporter.t_plan_report_2]]>
         </sqlStatement>
    </dataQuery>
    <dataStructure>
         <group name="group_all" source="Q1">
              <element name="kol_pl_l" value="kol_pl"/>
              <element name="kol_sv_l" value="kol_sv"/>
              <element name="trud_pl_l" value="trud_pl"/>
              <element name="trud_sv_l" value="trud_sv"/>
              <element name="nom_per_p_l" value="nom_per_p"/>
              <element name="kod_polu_p_l" value="kod_polu_p"/>
              <element name="p_v_l" value="p_v"/>
              <element name="kod_tmc_l" value="kod_tmc"/>
              <element name="liter_l" value="liter"/>
              <element name="nom_per_l" value="nom_per"/>
              <element name="shifr_dse_l" value="shifr_dse"/>
              <element name="shifr_izd_l" value="shifr_izd"/>
              <element name="kod_polu_l" value="kod_polu"/>
              <element name="kod_post_l" value="kod_post"/>
              <element name="trud_l" value="trud"/>
              <element name="kol_m_l" value="kol_m"/>
              <element name="tip_rin_l" value="tip_rin"/>
              <element name="kod_op_l" value="kod_op"/>
              <element name="kod_op0_l" value="kod_op0"/>
              <element name="order1_l" value="order1"/>
              <element name="n_val_l" value="n_val"/>
              <element name="shifr_usel_val_l" value="shifr_usel_val"/>
              <element name="sum_trud_val_l" value="sum_trud_val"/>
              <element name="sum_trud_val_sv_l" value="sum_trud_val_sv"/>
         </group>
    </dataStructure>
    </dataTemplate>
    I get this error with different data templates.
    Help me, please.
    Vladimir

    Hi Vladimir
    Can you test the data template posted here. http://static7.userland.com/oracle/gems/leslieStuddard/EMPLOYEES.xml
    It needs to connect to the sample scott schema, hopefully you have it installed?
    Let me know if you get the same error.
    thanks
    Tim

  • Data template with xml over http

    Hi!
    I have a data template what should get data from xml file.
    <dataTemplate name="ccbXML" description="For xml output">
    <properties>
    <property name="debug_mode" value="on"/>
    <property name="include_parameters" value="true"/>
    <property name="include_null_Element" value="true"/>
    <property name="scalable_mode" value="on"/>
    <property name="db_fetch_size" value="1000"/>
    </properties>
    <dataQuery>
    <xml name="DATA_XML">
    <url method="GET" realm="" username="" password="">http://my.site.sise/00000000070000000001.xml</url>
    </xml>
    </dataQuery>
    </dataTemplate>
    The result is:
    <CCBXML>
         <LIST_data_xml></LIST_data_xml>
    </CCBXML>
    When I use:
    <url method="GET" realm="" username="" password="">file:///D:\files\result.xml</url>
    then I get a parsal result from the XML (it is not structuated and it does not show all the xml content, only random tag's).
    In the end it is not possible for me to use the file protocol because the xml is generated dynamically in a http page. Is it even possible to use the http protocol in data template? Or is anything else wrong with my data template that I'm not getting the right result (even with file:///)?
    I work BI Publisher Enterprise Release 10.1.3.4
    Evelyn

    Could u please send the working example for http binding on SOA Suite 11 g.
    Thanks and Regards,
    Anil verma

  • How to modify Data Template  ARXSGPO.xml

    We are on EBS 12.1.1. My client want to customize AR Customer Balance Statement Letter. They need rtf to be modified as well as some additional info for which I need to modify Data Template ARXSGPO.xml .
    But I am not able to modify above xml file. Update File button has been disabled. Could someone tell me how I can update existing xml file ?
    Thanks in Advance

    Hi
    You could use the XDOLoader command to upload data templates.
    http://bipublisher.blogspot.com/2008/01/bi-publisher-xdo-loader.html
    But it would be better if you could create a custom report and attach the new date template, instead of modifying the standard report.
    Regards
    Nishka

  • What should i put in Schme while creating Data server for XML

    I am new to XML and ODI also.
    I was trying to create a data server for XML technology.
    I don't know what should i specify as a schmea in JDBC URL.
    e.g. jdbc:snps:xml?f=../demo/xml/1/file.xml&ro=false&ldoc=true&case_sens=true&s=LEO_FIZ&dod=true
    here schema is LEO_FIZ, so my doubts is LEO_FIZ is a database schema or what ??
    Please help me out.

    The schema referred to here is going to be used by the XML driver for the instantiation of the temporary schema used for the xml data. It can be any name, I recommend you keep it short, as if you use an external database for the XML data instantiation it is used as a part of the "table" names.

  • Error of Creating Data Server for XML

    Hi all,
    When I want to create a new data server for XML in ODI, the error occur.
    error information:
    connection failed
    java.sql.SQLException: Unexpected token: EMP_TABLE in statement [create EMP_TABLE]
    My JDBC url is: jdbc:snps:xml?f=../demo/xml/MOP/MOPEMP.xml&rt=Export&ro=false&case_sens=true&s=EMP
    It seems that the error is caused by the schema "EMP". But when I changed the name of schema, the error still occur...
    Could you give me some advices about this?
    Thanks&Regards
    Yan

    Hi,
    Thans for your reply.
    This is the DTD for my xmldoc.
    <!ELEMENT Data (Department+)>
    <!ELEMENT EmployeeID (#PCDATA)>
    <!ATTLIST EmployeeID col (EMPID) #IMPLIED>
    <!ELEMENT Education (EmployeeID, Sequence, Dgree)>
    <!ATTLIST Education table NMTOKEN #IMPLIED>
    <!ELEMENT Employee (EmployeeName, EmployeeID, DepartmentID, Education*)>
    <!ATTLIST Employee table NMTOKEN #IMPLIED>
    <!ELEMENT EmployeeName (#PCDATA)>
    <!ATTLIST EmployeeName col NMTOKEN #IMPLIED>
    <!ELEMENT DepartName (#PCDATA)>
    <!ATTLIST DepartName col NMTOKEN #IMPLIED>
    <!ELEMENT Table (Column+)>
    <!ATTLIST Table importType NMTOKEN #IMPLIED>
    <!ATTLIST Table parentTable NMTOKEN #IMPLIED>
    <!ATTLIST Table tag NMTOKEN #IMPLIED>
    <!ATTLIST Table columns NMTOKEN #IMPLIED>
    <!ATTLIST Table name NMTOKEN #IMPLIED>
    <!ELEMENT DepartID (#PCDATA)>
    <!ATTLIST DepartID col NMTOKEN #IMPLIED>
    <!ELEMENT MetaData (Table+)>
    <!ELEMENT Sequence (#PCDATA)>
    <!ATTLIST Sequence col NMTOKEN #IMPLIED>
    <!ELEMENT Dgree (#PCDATA)>
    <!ATTLIST Dgree col NMTOKEN #IMPLIED>
    <!ELEMENT Export (MetaData, Data)>
    <!ELEMENT DepartmentID (#PCDATA)>
    <!ATTLIST DepartmentID col NMTOKEN #IMPLIED>
    <!ELEMENT Column (#PCDATA)>
    <!ATTLIST Column deleteKey NMTOKEN #IMPLIED>
    <!ATTLIST Column isKey NMTOKEN #IMPLIED>
    <!ELEMENT Department (DepartName, DepartID, Employee+)>
    <!ATTLIST Department table NMTOKEN #IMPLIED>
    Thanks again!
    Yan

  • Issue in creating data server for xml in ODI

    Hi,
    I have a XMl which has a size around 95 MB. When i tried to create data server in ODI for this xml file.
    I encounter below error,
    "oracle.odi.jdbc.datasource.ConnectionTimeoutException: A login timeout occured while connecting to the database
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:117)
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
    at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java:1125)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.getLocalConnect(SnpsDialogTestConnet.java:163)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.access$4(SnpsDialogTestConnet.java:159)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet$4.doInBackground(SnpsDialogTestConnet.java:520)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet$4.doInBackground(SnpsDialogTestConnet.java:1)
    at oracle.odi.ui.framework.AbsUIRunnableTask.run(AbsUIRunnableTask.java:258)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
    at java.lang.Thread.run(Thread.java:662)"
    Kindly let me know what should i do for resolving the error.
    Thanks and Regards,
    Ida Jebakirubai S.

    Yes Phil i am able to create a data server for xml files which are of smaller in size(in KB). And i can use the files in the interface as well.
    When i using this large file only i am getting this error.
    Please suggest.
    Thanks and Regards,
    Ida.

  • Calling a package function in the data template

    Hello All,
    I am not able to understand the concept of calling a function from the data template.
    In my data template, I put the sql statement as
    <sqlStatement name="Q_SEL">
    <![CDATA[  Select l_period_name PERIOD_NAME
                             from xla_tb_ap_report_pvt.get_period_name(1) ]]>
    </sqlStatement>
    Is it possible to call a specific package function as shown above in a select statement?
    I am getting the message "ORA-00933: SQL command not properly ended" when I tried with the above. Could you pls. point out what the error is in the above sqlStatement?
    1) My instance is R12.1.3
    2) The base pkg function 'xla_tb_ap_report_pvt.get_period_name' expects a number to be passed in as 'IN' parameter.
    Thanks,
    Monkey

    I tried another version of the sql statement (after going through some older posts) like:
    <sqlStatement name="Q_SEL">
    <![CDATA[  Select xla_tb_ap_report_pvt.get_period_name(1) PERIOD_NAME
                            from  dual]]>
    </sqlStatement>
    My group is :
    <group name="G_PERIOD_NAME" source="Q_SEL">
    <element name="PERIOD_NAME" value="PERIOD_NAME"/>
    </group>
    Now getting the error message:
    ORA-00904: xla_tb_ap_report_pvt.get_period_name : invaild identifier
    What is it that i am doing wrong?
    Thanks,
    Monkey
    Edited by: OAF_Monkey on Mar 26, 2012 11:52 AM

  • Need 2010 calendar template for Indesign CS

    I am trying to do a calendar for a high school and need a 2010 template for Indesign CS.  I can find it for every other version of Indesign but not the plain Creative Suite version.
    Can anyone help me with this?
    Thankx

    Not likely. CS is very old and you should note that once CS5 comes, if the upgrade policy remains the same, you won't be eligible for upgrade pricing anymore.
    Bob

  • I need tables for prepare the master data templates for PM

    Dear Experts,
    can we prepare the master data templates by using the tables? if its possible means how we can prepare and what we have to considered ? is it right way or wrong?
    please suggest me to prepare the masterdata templates for ever use. if any small corrections we can correct it at usage time.
    please help me
    thanks a lot in advance

    Dear Jalu,
    Master data Templates have to be prepared based on Client's requirement after understanding their Business.
    For example, in Equipment master there are ~ 60 to 70 feilds, no client requires all of them. Some are inherited.
    After client requirement freezing, record LSMW and based on that prepare the Template.
    Regards,
    MLN Prasad

  • FUNCTION Variable within Data Template

    Hi Im calling a function within my sql and i want to use the result as a bind variable.... here goes...
    Data Template...... XML
    <sqlStatement name="Q1">
    <![CDATA[select function_name(ppp.id) the_main_one,
    :the_main_one + 10 new_value
    from per_ppp]]>
    </sqlStatement>
    I get null value .... but from the_main_one i get a value..... any ideas... i checked for number and nvl(,0) and all that no luck
    is there a grouping thing involved here... where as i need to call the function from within another sql statement...

    It can be done.
    Step 1: Setup package.
    Step 2: Create a global variable for your function value
    Step 3: Before the calling function returns the value, set a global variable (placeholder)
    Step 4: Create a new function that returns the global variable, make sure it's after the first function call. Returning the value you might want to reset the global variable to null....
    Your good to go.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • PDF Template for XML Report

    We are trying to create a PDF Template for an XML Publisher Report using Adobe Acrobat Profession Version. The PDF Template works fine for one employee but when the start and end body tags are inserted in the template, the concurrent process to submit this reports completes in warning.
    The OPP Log shows the below details
    [6/30/08 1:26:36 PM] [102436:RT20660155] XML Publisher post-processing action complete.
    [6/30/08 1:26:36 PM] [102436:RT20660155] Completed post-processing actions for request 20660155.
    [6/30/08 2:29:59 PM] [OPPServiceThread0] Post-processing request 20660180.
    [6/30/08 2:29:59 PM] [102436:RT20660180] Executing post-processing actions for request 20660180.
    [6/30/08 2:29:59 PM] [102436:RT20660180] Starting XML Publisher post-processing action.
    [6/30/08 2:29:59 PM] [102436:RT20660180]
    Template code: Test123
    Template app: XBOL
    Language: en
    Territory: US
    Output type: PDF
    [6/30/08 2:29:59 PM] [UNEXPECTED] [102436:RT20660180] oracle.apps.fnd.cp.opp.PostProcessorException: XML Publisher output file not created
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:281)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    I think this is do which how i am creating the PDF Template. When i am not inserting the repearting group tootips then the PDF Template works abosoultey fine for one employee
    the text inserted in the Toottip for the start of the repeating group - @{rep_field="BODY_START"}@
    Tootip for each repeating row @{rep_field="T1_G1"}@ ,@{rep_field="T1_G2"}@ and so on.
    Tootip for end of the repating group @{rep_field="BODY_END"}@

    XML Data
    <?xml version="1.0"?>
    <!-- Generated by Oracle Reports version 6.0.8.11.3 -->
    <MODULE1>
    <LIST_G_HGL>
    <G_HGL>
    <EMPLOYER>HWS</EMPLOYER>
    <BOX_1>YEN</BOX_1>
    </G_HGL>
    <G_HGL>
    <EMPLOYER>HGL</EMPLOYER>
    <BOX_1>YE</BOX_1>
    </G_HGL>
    </LIST_G_HGL>
    </MODULE1>
    Further when i tried using the Template Viewer of XML Publisher Desktop with the above XML File and the template i created in Adobe Acrobat Professional (i am mailing the template to [email protected]) , i got the following error
    [070808_093926007][][STATEMENT] MergerEngine.modify : template forms value is being changed......
    [070808_093926007][][STATEMENT] MergerEngine.modify(String, String, String) block ::: FieldName -> Start , FieldValue ->
    [070808_093926007][][STATEMENT] MergerEngine.modify(String, String, String) block ::: FieldName -> End , FieldValue ->
    [070808_093926038][][STATEMENT] MergerEngine.modify(String, String, String) block ::: FieldName -> EMPLOYER , FieldValue -> HGL
    [070808_093926054][][STATEMENT] MergerEngine.modify : template forms value is changed......
    [070808_093926054][][EXCEPTION] java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at oracle.apps.xdo.template.pdf.RepeatEngine.getGapBetweenGroups(RepeatEngine.java:449)
         at oracle.apps.xdo.template.pdf.RepeatEngine.<init>(RepeatEngine.java:154)
         at oracle.apps.xdo.template.pdf.RepeatEngine.<init>(RepeatEngine.java:101)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1742)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1684)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1445)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1583)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:131)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:73)
         at oracle.apps.xdo.runner.PDFFormRunThread.run(PDFFormRunThread.java:45)
    [070808_093926054][][STATEMENT] <--- before calling createContents() --->
    [070808_093926086][][STATEMENT] <--- before calling addFontInfoToResources() --->
    [070808_093926086][][EXCEPTION] oracle.apps.xdo.template.pdf.exception.FatalException: page Key can't be found to duplicate page......
         at oracle.apps.xdo.template.pdf.RepeatEngine.getDupPageKey(RepeatEngine.java:1421)
         at oracle.apps.xdo.template.pdf.RepeatEngine.composePages(RepeatEngine.java:827)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1743)
         at oracle.apps.xdo.template.FormProcessor.processRepeatableFields(FormProcessor.java:1684)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1445)
         at oracle.apps.xdo.template.FormProcessor.process(FormProcessor.java:1583)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:131)
         at oracle.apps.xdo.runner.PDFFormRunThread.runFormProcessor(PDFFormRunThread.java:73)
         at oracle.apps.xdo.runner.PDFFormRunThread.run(PDFFormRunThread.java:45)
    End of Process.
    Time: 0.251 sec.
    FO Formatting failed.

Maybe you are looking for

  • Advice needed - .vob file conversion for playing on itouch

    help needed and advice on best application for dvd/movie file conversion. i want to convert .vob file so i can transfer to ipod. seems like there are several free & pay for app's out there - any guidance as to which is the best would be appreciated.

  • "Invalid Trading Partner Setup" Error for Invoice Inbound Propagation.

    Hi, I am trying to post xml data into the invoice interface tables through the link <http://<<server name>>:port/servlets/oracle.apps.ecx.oxta.ECXOTAInbound>.I have created an xml with repect to the transaction map. But when I post this xml i get an

  • Older iMac in need of help

    I have a 5 year old intel iMac using 10.7.4. I feel like it is on its last legs because I get many pinwheels with any click of mouse, and gray screens (when I reboot). I'd like to wait until Sept. for the new models. Any ideas for help in the meantim

  • Dead G4

    Hello! I've got a G4 (Sawtooth) with a 1 GHz processor upgrade. It has been working fine for the last couple of years, and I've replaced the fans to quieter ones several years ago. Today I decided to replace my graphics card, so I shut my machine dow

  • VAT Details

    Hi Sap Gurus, can u tell me How VAT IS captured in CIN in purchasing? How the credits are taken? How vat register maintained?Like excise register maintainenece How vat utilized aganist the out going materials?During selling How the vat is payed to th