Specifying the output order of elements in XML using Oracle Reports.

Hi,
I am developing an Oracle Reports report, using Report
Builder 6.0.8.17.0 on WinNT. The requirement is that the report
will only ever be used to generate XML output.
However, due to a bug in the XML Parser at the other end,
it's necessary to have certain elements appear in the XML before
others.
e.g. This simplistic example shows XML output from Reports
runtime, which looks something like this:
<DEPT id="10">
<NAME>Government</NAME>
<EMP id="4435">
<SAL>12000</SAL>
<ENAME>Harry Boland</ENAME>
<EMP>
<EMP id="8643">
<SAL>21000</SAL>
<ENAME>Michael Collins</ENAME>
<EMP>
<EMP id="9900">
<SAL>47000</SAL>
<ENAME>Eamonn de Valera</ENAME>
<EMP>
<LOCATION>
<ADDRESS type="street">Kildare St.</ADDRESS>
<ADDRESS type="city">Dublin</ADDRESS>
</LOCATION>
</DEPT>
However, the application that is parsing the XML fails due to
the fact that it expects the LOCATION element to be the first
within the DEPT element. i.e. before the NAME or any of the EMP
elements.
The way I have developed this is by creating a master query
which creates a master group, G_DEPT, with two column, ID and
NAME, and two detail queries and corresponding detail groups, EMP
and LOCATION. These groups are joined to the master using the
datalink facility in Report Builder.
Is there any way in Report Builder I can specify that the
LOCATION element is to be output for each DEPT element before any
other element belonging to DEPT?
Thanks,
Iibhear.

The order of the elements is determined by the order of the columns in the Data Model. Note that you can also use the "Exclude from XML output" property to completely omit columns form the XML output.
Message was edited by:
Brian Hill
This applies to Reports 10g. I don't know if it also works in 6i.

Similar Messages

  • How to export an album and keep images in the same order in elements 11 mac

    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos

    Thanks for the tip, Michel
    It worked like a charm…
    cheers Jos
    Op 28 okt. 2013, om 18:49 heeft MichelBParis <[email protected]> het volgende geschreven:
    Re: How to export an album and keep images in the same order in elements 11 mac
    created by MichelBParis in Photoshop Elements - View the full discussion
    JosU a écrit:
    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos
    The order in album is only kept in the organizer database, so the only way not to lose that order is to rename files.
    If you are using the 'export' function, select your album in custom order, select all photos and in the dialog, choose to rename with a common base name.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5794538#5794538
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5794538#5794538
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5794538#5794538. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Specify the output file path and print name when printing pages

    hi,
    how can i Specify the output pdf file path and print name when i am using the function PrintPagesSilent from AcroAVDoc Object.
    My Code :-
    Acrobat.AcroAVDoc doc = new Acrobat.AcroAVDoc();doc.Open(path,
    "temp");

    Dear Irosenth,
    i try with different format (doc, docx,  xls, jpg, bmp and txt) and it working successfully, but it give an random name for the file which saved in default folder for Adobe PDF print.
    you can use the following function:
    private void PrintPDF(string[] inputfilepath){
    foreach (string path in inputfilepath){
    Acrobat.
    AcroAVDoc doc = new Acrobat.AcroAVDoc();doc.Open(path,
    "temp"); 
    Boolean v = doc.PrintPagesSilent(0, ((Acrobat.AcroPDDoc)(doc.GetPDDoc())).GetNumPages() - 1, 0, 0, 1);doc.Close(1);
    and calling it by the following code:
    PrintPDF(System.IO.Directory.GetFiles("c:\\t\\printjob"));
    copy all files that you want to convert in side the mentioned path and run it program, then check the defualt print path for Adobe PDF printer.
    test it and reply me. thanks again

  • Can we generate the output of SQL Query in XML format ..

    Hi Team,
    Can we generate an XML doc for an SQL Query.
    I've seen in SQL Server 2000.It is generating the output of an SQL Query in xml format.
    select * from emp for xml auto
    The output looks like
    <emp EMPNO="7369" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="20"/><emp EMPNO="7370" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="10"/>

    Just a little bit of short hand.
    Get the XML out of your database, via HTTP
    Of course the easiest method is just to return an XMLType from a stored procedure and let the calling routine figure out what to do with it. Instead
    of that way though, I'll show you how to do it via HTTP. It's all completely built into 10g and is super easy to use.
    CREATE OR REPLACE VIEW emps_and_depts AS
    SELECT e.employee_id AS "EmployeeId",
    e.last_name AS "Name",
    e.job_id AS "Job",
    e.manager_id AS "Manager",
    e.hire_date AS "HireDate",
    e.salary AS "Salary",
    e.commission_pct AS "Commission",
    XMLFOREST (
    d.department_id AS "DeptNo",
    d.department_name AS "DeptName",
    d.location_id AS "Location"
    ) AS "Dept"
    FROM employees e, departments d
    WHERE e.department_id = d.department_id
    Some people hear web and immediately start salivating about security issues. Let me address that quickly. Just because you have the HTTP and/or
    FTP servers running in the database, that does not mean you have a security problem. For one, I would hope your databases are behind a firewall.
    Second, with the correct architecture (DMZ, app servers, etc) you can make this data available outside the firewall fairly transparently and third,
    just because it's on the web does not mean the data MUST be available on the internet. This is a good way to make your data available on your
    intranet. If you are worried about people INSIDE your firewall, that still doesn't preclude web based access. Follow Oracle security guidelines.
    Before I show you how to get to your data, let's talk about URLs and URIs. A URL is a Uniform Resource Locater and URI is a Uniform Resource
    Identifier. A URL is the way you would identify a document on the net, i.e. http://www.oracle.com is a URL. A URI is a more generic form of a URL.
    Oracle supports three types of URI: HTTPURIType - basically a URL (which would be like the URL above), XDURIType - a pointer to an XDB resource
    (usually an XML document but can be other objects), and DBURIType - a pointer to database objects.
    It's the DBURIType that we're going to concentrate on here. The DBURIType let's us reference database objects using a file/folder paradigm. The
    format for a DBURI is /oradb/<schema>/<table>. Oradb is shorthand for the database; it is not the database name or SID. My database is named XE
    but I still use oradb in the DBURI. For example, the view we created above is in my XE database, is owned by HR (at least in my case) and is called
    EMPS_AND_DEPTS. This can be referenced as /oradb/HR/EMPS_AND_DEPTS.
    If the view had many rows and you wanted only one of them, you can restrict it by including a predicate. The documentation for XDB has a great
    write up on Using DBURIs.In our case, we are going to write out the entire document. Now that you understand that the DBURI is a pointer to
    objects in our instance, we can use that to access the data as a URL.
    The format for the URL call is http://<machinename>:<port>/<DBURI>
    In my case, my XE database is running on a machine called mach1 and is listening on port 8080. So to see the view we created above, I open my
    browser and navigate to: http//mach1:8080/oradb/HR/EMPS_AND_DEPTS
    The created URL will be as http//mach1:8080/oradb/PUBLIC/EMPS_AND_DEPTS
    If your database is set up correctly and listening on port 8080 (the default), your browser should ask you to login. Login as the user who created the
    view (in my case HR). You should now get an XML document displayed in your browser.
    And that's it. It doesn't get much simpler than that. If you get rid of the descriptive text above, it basically comes down to:
    Create a table or view
    Open your web browser
    Enter a URL
    Enter a user ID and password
    View your XML
    If you notice, Oracle formatted the data as XML for us. Our view returns scalar columns and an XML fragment called Dept. Oracle formatted the
    return results into an XML format.
    And as a side note, if you look closely, you'll see that my URL has PUBLIC where I said to put HR. PUBLIC is a synonym for all objects that your
    logged in user can see. That way, if your user has been granted select access on many schemas, you can use PUBLIC and see any of them.

  • Control the output order of a CFSearch

    What is the proper procedure to take the return from a CFSearch and set the order based on one of the fields to be displayed in numerical, alphabetical, whatever?
    I understand how to use the result of the CFSearch to index into another source but that's one record at a time.  I want to re-order the cfsearch output to be in a defined order rather than the returned order based on ranking if I understand the process correctly.
    What to do?

    Basically we want to search a large inventory database and the client would like the output in an Alpha format.  I figured that the verity search would be the easiest way to parse through the data as well as allow for using wildcard chars.
    Ah right.  I probably would not use Verity to do that.  I'd use your DB's free-text search capabilities for this sort of thing, and do the work on the DB rather than getting Verity to drag it all out, then use CF to re-order it.
    I can get what I want except that I don't quite understand how to take the cfsearch return and then re-sort the data.
    This has been covered in previous responses: query on query will effect this.  However I don't think Verity & QoQ is the best approach to the requirement, now that I better understand what the requirement is.
    Adam

  • Specify the output date to be of a Specified date format.

         DateFormat  formatter = new SimpleDateFormat("MM/dd/yyyy");
         String dateString = "12/12/2006";
         Date dateStringInDateFormat = formatter.parse(dateString);
         System.err.println("the date"+dateStringInDateFormat);
         String str1 = formatter.format(dateStringInDateFormat);
         System.err.println("the date in string format"+str1);
         DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
         df.setLenient(false);
         Date stick = df.parse(str1);
          System.err.println("The final date to be passed"+stick);The output that i get on screen:
    the date Tue Dec 12 00:00:00 GMT 2006
    the date in String format 12/12/2006
    The final date to be passed Tue Dec 12 00:00:00 GMT 2006
    I want the final date to be passed i.e, Date stick to be 12/12/2006
    Can anyone helpme in this issue

    DateFormats do not change what a Date object contains or how it is displayed. They are only used to format the output when you use them with format(Date). The Date object itself is unchanged and you cannot change it.
    So whereever you want to display a date in your particular format you will need to use your DateFormat.

  • Remove element from xml using dom.

    i want to remove an element from an xml file using dom.
    i remove the element but the whole content of the file is also deleted.
    how can i rewrite the file.

    vij_ay wrote:
    subject :Remove element from xml,but if empty element in input file then output should be <tag></tag>, not like <tag.xml/>I assume you mean <tag/> but why do you want this? Any application that will not accept this valid XML construct is flawed and a bug report should be raised against it.

  • How to delivery the output to both filesystem and printer using BurstingEng

    Hi,
    I am using BurstingEngine to delivery the pdf output to filesystem.
    I am able to delivery the output to either filesystem or printer, but we need to delivery the ouptut to both filesystem and printer.
    the control file i am using is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/TMP001/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE">
    <xapi:delivery>
    <xapi:filesystem output="/tmp/${TRX_NUMBER}"></xapi:filesystem>
    <xapi:print id="xerox6350-2ne" printer="ipp://localhost:631/printers/xerox6350-2ne" copies="1"/>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="xerox6350-2ne">
    <xapi:template type="rtf" location="/u04/app/oracle/product/fdev/fdevcomn/java/oracle/apps/fnd/cp/nsfcus/INVOICE.rtf" />
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    it is giving the following error.
    [102506_094844261][oracle.apps.xdo.batch.DeliveryHelper][EXCEPTION] oracle.apps.xdo.delivery.DeliveryException: File does not exist : /tmp/102506_094840769/3.pdf
    [102506_094844263][oracle.apps.xdo.batch.DeliveryHelper][EXCEPTION] java.io.FileNotFoundException: /tmp/102506_094840769/3.pdf (No such file or directory)
    Thanks in Advance,
    Raj.
    Message was edited by:
    user538335

    Hi,
    This is a bug in 5.6.2. We fixed it in the next release.
    If this is a critical issue for you, please log a TAR and escalate the issue so that we can review it and backport the fix if necessary.
    Thanks,
    Shinji

  • Gettting error while trying to upload an xml in oracle report builder11g

    REP-0069: An internal error occured. JDBCPDS-62008 : java.lang.NullPointerException
    This is the error m getting while trying to upload an xml with the option Open an existing report in Oracle Forms and Reports 11g
    An xml to be uploaded is as follows :
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <report DTDVersion="9.0.2.0.10" name="Simple">
    <data>
    <userParameter datatype="character" display="no" name="P_JDBCPDS" pluginClass="oracle.reports.plugin.datasource.jdbcpds.JDBCDataSourceFactory"/>
    <dataSource name="SSRS_DB">
    <plugin factoryClass="oracle.reports.plugin.datasource.jdbcpds.JDBCDataSourceFactory" signOnParameter="P_JDBCPDS"><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?> <jdbcpds DTDVersion="1.0"> <JDBCQuery>Select * from TableName</JDBCQuery> <QueryDefinition>0</QueryDefinition> <driverType>jdbc-odbc</driverType> <connectionClass>oracle.reports.plugin.datasource.jdbcpds.JDBCConnectionHandling</connectionClass> <SignOnParameter>P_JDBCPDS</SignOnParameter> <jdbcElements> <element cloumnScale="0" cloumnSize="50" name="Product name" type="12" typeName="varchar"/> <element cloumnScale="0" cloumnSize="50" name="Region" type="12" typeName="varchar"/> </jdbcElements> </jdbcpds> ]]></plugin>
    <group name="SSRS_DB">
    <dataItem datatype="character" javaDatatype="varChar" name="Product name">
    <dataDescriptor expression="Product name" order="1"/>
    </dataItem>
    <dataItem datatype="character" javaDatatype="varChar" name="Region">
    <dataDescriptor expression="Region" order="2"/>
    </dataItem>
    </group>
    </dataSource>
    </data>
    <layout>
    <section name="header">
    <margin>
    <text name="PH0textboxH0">
    <geometryInfo height="0.30210" width="3.61460" x="2.12500" y="1.43750"/>
    <textSegment>
    <string><![CDATA[This Is Header Section]]></string>
    </textSegment>
    </text>
    </margin>
    </section>
    <section name="main">
    <body>
    <graph name="chart1">
    <graphDefinition><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?> <rw:graph dataValues="DataValues" groups="Product name" id="chart1" src="No_DataSet"> <Graph customLayout="" seriesEffect="SE_AUTO_GRADIENT" version="11.1.1.0"> <Y1Axis majorTickStepAutomatic="true"/> <Y2Axis majorTickStepAutomatic="true"/> </Graph> </rw:graph> ]]></graphDefinition>
    </graph>
    </body>
    </section>
    </layout>
    <reportPrivate defaultReportType="tabular" templateName="rwbeige" versionFlags2="0"/>
    </report>
    Edited by: 904790 on May 21, 2012 4:00 AM

    Hi
    Try to increase just by 1.. and see what causing the problem
    If any page number - remove and do it again.
    However try below
    ERR REP-1219: 'R_1' has no size -- length or width is zero.

  • How to Avoid Blank Page in  XML Publisher oracle report

    Hi,
    I am running a report in xml publisher. The output of the report prints 2
    pages, one page with correct report output and other page is a blank page
    with header details.
    I want to avoid this blank page. Is there something wrong? Please help to fix this issue!
    Thanks!

    I am running a report in xml publisher. The output of the report prints 2
    pages, one page with correct report output and other page is a blank page
    with header details.
    I want to avoid this blank page. Is there something wrong? Please help to fix this issue!Is the issue with this specific XML Publisher report only?
    Do you have all the patches in (Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]) applied? -- Search for "blank page".
    Thanks,
    Hussein

  • Build XSD (XML Schema Defenition) from XML using Oracle SOAz

    Hi:
    I want to integrate Application A to Application B using Oracle SOA suite. Application A will give me a XML file. Application B will supports XSD. Can any one help me how to build XSD using existing XML in Oracle SOA suite?
    Appreciate if you give me the steps.
    Thanks,
    RAO

    You might want to ask this question in the SOA forum. To get there ...
    at the top of this page you will see a set of links that look like "Forum Home » Technology Network Community » Certification".
    Click on 'Forum Home' to get to the Forum Home page.
    Then press Ctrl+F to enable search in your browser.
    Enter SOA in the search box, and if you are using Internet Explorer you might want to press the Next button.
    You will see a list
    SOA & Process Management
      SOA Suite 
      BPEL
      Applications Integration using Oracle Fusion Middleware
      Business Process Management Suite 
      More... You could click on 'SOA Suite' to chat with people who use the SOA Suite.
    You could click on 'More...' to see whether there are other useful forums.
    Just to satisfy my curiosity, why did you select the Certification forum for this question?

  • I am trying to upload the purchase order long text in mm01 using BAPI

    Hi All,
    I am trying to upload Purchase Order Long text (which is in chinese Language) and Language field with  ZH(chinese) in MM01 using BAPI_MATERIAL_SAVEDATA.
    It is uploading properly, But in the Language field it is showing Z1(Customer reserve) instead of ZH(Chinese).
    What could be the reason for this and how it can be resolved.
    Thanks in advance,
    Raja

    Hi,
    Which input parametr did you use? See table T002
    LANGU = '1'
    LAISO = 'ZH'
    Rgds,
    JP

  • How to parse and use the data that is coming as XML using DAL script

    Hi,
    I am trying to implement a solution where we are getting a doPublish request using EWPS webservice call which just contains a transaction id. I need to read a table using transaction id to get the xml. I know how to read the xpath and implement the solution if the XML is coming as input. If it stored on a table where Documaker should read and get the XML, how can we implement that?

    If you are saying that your XML is stored in a table, I'm not sure there is any method, using DAL or rule, that would know how to load XML from there. I can be wrong, but I think it has to load the XML from disk only - either as the extract file or as an external file referenced from the extract - using a Rule or DAL to go after the external file.
    Perhaps you could clarify the situation a little more and someone might offer a suggestion.

  • Oracle report output in MS Excel sheet version used oracle apps 11.5.9

    Hi guys,
    I need ur help........plz tell me how to convert rdf report output in excel sheet format currently it come in pdf format. actually oracle apps version 11.5.9 there is no option for xml publisher report that's why i m facing prob.
    used:
    report builder version : 6i
    database : 9i
    Report belong from AR module......................... Debtor Ledger Report of AR.
    I hv tried Text,xml report output option but not worked.......plz give me idea how to resolve this issue...................................thanks

    How To View / Open Concurrent Requests With The Excel Application [ID 377424.1]
    Please also see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Excel+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to show the data of one query since Forms9i using to Report built-in on

    Hello!!!, I have Developer 9i (Forms and Reports), the OCJ4 and repserver90 are running, now, I attempt to run one report from Forms9i, and only it appears an empty page HTML. I don't understand why doesn't show the data of query?
    Please, give me a solution for this problem, thanks for your help.
    PD: I am using the below code.......
    PROCEDURE bring_report IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := find_report_object('Q_DATA1');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://172.16.2.18:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

    Alex,
    the code does look good. maybe the Reports query does not produce an output. You can trace this ny adding a header on top of teh Reports (e.g. a date or just saying "Hello World"). So instead of an empty page this should now show the text strings. If you don't see the string then there is something else going on. Since you are not getting any error message I assume that the Reports itself executes fine.
    Frank

Maybe you are looking for

  • Lock/Freeze when in browser

    When saving sessions or files, equal parts in both, my Audition 3 keeps freezing/locking up. I can't figure out one reason why... It's such a basic Windows call... and no this has nothing to do with previewing audio, during saving files and sessions

  • Java.lang.NullPointerException when trying to compile

    Hi everybody! I'm trying to compile a file using javax.tools.JavaCompiler but I get a java.lang.NullPointerException when running the program. Here is my code: public boolean CompExecFile(File filename){           boolean compRes = false;           t

  • Contribute CS4, re-install

    I need to re-install my Contribute CS4 program, I have the license #, but it is not showing me a download link so I can re-install it.My computer crashed and I have had to re-install all my programs again. Can you please send me the download link. I

  • Enhancing 0FI_GL_4 with LSTAR (0ACTTYPE)

    Dear Colleagues! In my current project the customer needs the field 0ACTTYPE (LSTAR from BSEG table) to be uploaded with the extractor 0FI_GL_4. For this to be possible I need to enhance the extractor, right? Does any of you have experience with this

  • Wat is wrong in this decode function, it doesn get executed,please help me

    wat is wrong in this decode function, it doesn get executed,please help me decode(DVI.COMPANY||'.')||                                         DECODE(DVI.COST_CENTRE||'.')||                                         DECODE(DVI.ACCOUNT||'.')||