the sql XML query report conversion - sound the alarm
Hi allI have a custom report based on an sql query (method-sql * more) I need to convert this report in XML. I followed these steps
now, if I run this program it will show a warning when I checked the journal (Journal of the conc program manager administer) it displays following errorI have generated the xml file by opening this request in the rdf generator (file > > generate > > xml)
I open this XML file in word and do the rest of the treatment
Copy the original simultaneous program (copy to option in set the window)
changed the short name and the type of output as XML (the same method and executable retention)
Add newly build it program at thr group asks even the original program in conc
> > caused by: oracle.xdo.parser.v2.XMLParseException: beginning of the element root waited.
When I checked the XML code (from diagnostics) I was following the text by giving parameters
> > whitespace is not allowed at this location. Error processing resource
> > Semi colon character was expected. Error processing resource
I checked the preview while I was preparing the model in word, it was a weather display data
by giving the same parameters for which I generated the XML code, it shows the same warning in apps
The log file also has the data...
I use reports 6i, XML 5.6.2 and apps 11.5.10.2
kindly help me to solve this
Thanks in advance
Shivdeep Singh
first question - did you just change the output format of your concurrent request (with the executable, type SQL * more) in XML format and add a template to it?
If this is the case, I'm not surprised, you get an error. You must ensure that you generate actual XML output. If you run the query and then click on the "Diagnostics" button, you will see a button saying 'display XML '. Click on this to see what you get. If you get an error, then it is not correct XML.
This is the case, you have several options:
1. create a data model and use it to create the XML file
2 use the XML features in your query to generate XML (never tried so cannot guarantee this will work)
3. use file rdf reports to generate the XML file
4 generate the XML of PL/SQL file
I suggest that you try option 2 first of all it should be pretty fast & easy to test, then use option 1 as the best solution if it does not work.
Good luck!
Tags: Business Intelligence
Similar Questions
-
Query/report asked for entry? in the Apex
Hello everyone, my name is John and I am asking for help with the following.
I am new to Apex, Oracle, PL/SQL, and SQL (as you can tell from my query below).
I have the basics of the Apex (to present reports, forms etc.).
I created this query on a view in SQL Developer, where it is asked for the start and end dates filter the report. which is what I want it to and returns the results I want.
Now, I want to create a report in the Apex where it asks him between the dates as it does in the request sent, when it's done I want to spend bipublisher to print pdf report.
I run this query as a report of totals already (without the line with WHERE clause query asking course.) in an apex application, gross is it.
I have it as interactive reports and can be filtered in this way dates of couse, but I want to learn how to create the report/query of type of user input in the Apex.
I read that I would need to use a "Block anonymous pl/sql with a" declare "and a process page?." " (confused gettting in variables "declare" and execute sections)
I looked at many samples and still haven't quite come down the blocks.
If you could point me in the right direction of where to go, or better still, if someone could show me coding on how to make this work in apex query/report (s)?
Learn slowly I suppose
I use APEX 3.1.2 on database 11g.
Thanks in advance for the help on this.
++++++++++++++++++++++++++++++++++++
-the truck view totals query-
Select
trucktotals.truck_number "truck number."
trucktotals. truck_type as "Type truck."
sum (trucktotals.end_miles - trucktotals.begin_miles) as "Total number of miles,"
sum (trucktotals.reg_hours + trucktotals.ot_hours) as 'Total hours. "
sum (trucktotals.total_net_tons) as 'Total tonnes. "
AVG (trucktotals.equip_rent) as "EQR P_HR' to 'trucktotals '.
where < strong > trucktotals.wage_date between to_date(:Start_date) and to_date(:end_date) < facilities >
Trucktotals.truck_number group, trucktotals.truck_type
order of trucktotals. Truck_Number - query end to view truck totals-+++
Published by: [email protected] on October 31, 2008 12:49
Published by: [email protected] on October 31, 2008 12:53
Published by: [email protected] on October 31, 2008 12:54Hi John,.
I am pleased that the information has helped.
About the pop up, you should try to avoid them if possible. You should really try to avoid if possible because most browsers have pop-up blockers. (I can ramble on about this topic for hours, but I'll leave it as one).
So how to avoid pop-ups in this situation? APEX can return conditionally regions. If you have a region "indicates the parameter" which has your in/thru date. which is always is evidence. Then put a condition on the report so that he sees only when the from and through date are entered (I think that I put an example above).
I would like to know how this happens.
M
-
Re-write the code DOM node with SQL - XML funtions
Hi friends,
Could you please help to re - write the code using the following SQl - XML functions
DECLARE
l_domdoc dbms_xmldom. DOMDocument;
l_xmltype XMLTYPE.
l_root_node dbms_xmldom. DOMNode;
l_departments_node dbms_xmldom. DOMNode;
l_dept_element dbms_xmldom. DOMElement.
l_dept_node dbms_xmldom. DOMNode;
l_name_node dbms_xmldom. DOMNode;
l_name_textnode dbms_xmldom. DOMNode;
l_location_node dbms_xmldom. DOMNode;
l_location_textnode dbms_xmldom. DOMNode;
l_employees_node dbms_xmldom. DOMNode;
l_emp_element dbms_xmldom. DOMElement.
l_emp_node dbms_xmldom. DOMNode;
l_emp_first_name_node dbms_xmldom. DOMNode;
l_emp_first_name_textnode dbms_xmldom. DOMNode;
l_emp_last_name_node dbms_xmldom. DOMNode;
l_emp_last_name_textnode dbms_xmldom. DOMNode;
BEGIN
-Create an empty XML document
l_domdoc: = dbms_xmldom.newDomDocument;
-Create a root node
l_root_node: = dbms_xmldom.makeNode (l_domdoc);
-Create a new node departments and add it to the root node
l_departments_node: = dbms_xmldom.appendChild (l_root_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Deptartments'))
);
FOR r_dept IN (SELECT dept.department_id
dept.department_name
loc.city
SERVICE dept
JOIN the loc site
ON loc.location_id = dept.location_id
WHERE dept.department_id IN (10.20)
)
LOOP
-For each folder, create a new item Dept with the service as an attribute ID.
- and add this new Dept element in the node of departments
l_dept_element: = dbms_xmldom.createElement (l_domdoc, "Dept");
dbms_xmldom.SetAttribute (l_dept_element, 'Deptno', r_dept. Department_id);
l_dept_node: = dbms_xmldom.appendChild (l_departments_node
dbms_xmldom.makeNode (l_dept_element)
);
-Each node Dept will get a node names that contains the name of the service as a text
l_name_node: = dbms_xmldom.appendChild (l_dept_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Name'))
);
l_name_textnode: = dbms_xmldom.appendChild (l_name_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_dept.department_name))
);
-Each node Dept will also get a node to the location that contains the location (city) in the form of text
l_location_node: = dbms_xmldom.appendChild (l_dept_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Location'))
);
l_location_textnode: = dbms_xmldom.appendChild (l_location_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_dept.city))
);
-For each Department, add a node of employees
l_employees_node: = dbms_xmldom.appendChild (l_dept_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Employees'))
);
FOR r_emp IN (SELECT employee_id
first name
last_name
Employees
WHERE department_id = r_dept.department_id
)
LOOP
-For each folder, create a new item Emp with the employee as an attribute ID.
- and add this new element of the Emp to the employees node
l_emp_element: = dbms_xmldom.createElement (l_domdoc, 'Emp');
dbms_xmldom.SetAttribute (l_emp_element, "empid", r_emp.employee_id);
l_emp_node: = dbms_xmldom.appendChild (l_employees_node
dbms_xmldom.makeNode (l_emp_element)
);
-Each node emp will get a first name and a last name node that contains the first name and the last name text
l_emp_first_name_node: = dbms_xmldom.appendChild (l_emp_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, "FirstName"))
);
l_emp_first_name_textnode: = dbms_xmldom.appendChild (l_emp_first_name_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_emp.first_name))
);
l_emp_last_name_node: = dbms_xmldom.appendChild (l_emp_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, "LastName"))
);
l_emp_last_name_textnode: = dbms_xmldom.appendChild (l_emp_last_name_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_emp.last_name))
);
END LOOP;
END LOOP;
l_xmltype: = dbms_xmldom.getXmlType (l_domdoc);
dbms_xmldom.freeDocument (l_domdoc);
dbms_output.put_line (l_xmltype.getClobVal);
END;
/
Thank you and best regards,
Arun Thomas T
It's as simple as that:
SQL> select xmlserialize(document 2 xmlelement("Departments" 3 , xmlagg( 4 xmlelement("Dept" 5 , xmlattributes(d.department_id as "Deptno") 6 , xmlforest( 7 d.department_name as "Name" 8 , l.city as "Location" 9 ) 10 , xmlelement("Employees" 11 , ( 12 select xmlagg( 13 xmlelement("Emp" 14 , xmlattributes(e.employee_id as "empid") 15 , xmlforest( 16 e.first_name as "FirstName" 17 , e.last_name as "LastName" 18 ) 19 ) 20 ) 21 from hr.employees e 22 where e.department_id = d.department_id 23 ) 24 ) 25 ) 26 ) 27 ) 28 indent 29 ) 30 from hr.departments d 31 join hr.locations l on l.location_id = d.location_id 32 where d.department_id in (10,20) ; XMLSERIALIZE(DOCUMENTXMLELEMEN --------------------------------------------------------------------------------
Administration Seattle Jennifer Whalen Marketing Toronto Michael Hartstein Pat Fay -
Format mask number in the XML editor reports
Hi all
I have a requirement in the format mask in xml publisher reports.
I have a field in my report that the quantity,
1 > if the value is 1234 I need to show as 1 234
2 > if the value 1234.56 I need to show 1,234.56
so I tried with properties of form with number format mask ' #, # 0.00' decimal so that's good, but for like number for 1234 also he 1,234.00 impression so I need 1 234, how I can do this, please help me.
Thank you
Thank you Deb to clarify. Yes just check the decimal (.) will work.
I tried with my example of xml data, and it worked.
Try this now...
-
How long the alarm does not sound on clock iPad app?
Hello
I use my iPad clock app, and I was wondering how long the alarm sounds for if I don't stop it manually.
Also, is there a way to set his time limit?
Thank you
Chris.
Based on the few times wherever I slept too long by ten to thirty minutes, I think it rings less than thirty minutes and more than five minutes.
Good day.
-
Why my ZTE open c Firefox OS Smartphone forget the wlan settings and does not sound the alarm?
Sometimes it is even enough to go outside the trash to let my smartphone to forget the settings for the wireless LAN. When I come back, I have to re-enter my wlan router - not so short - code. Once the internet connection is running as it should.
In addition, the alarm does not work, I can adjust alarms as I like, set the volume to maximum and also activate the vibrator but does nothing when the time arrived, even when the alarm appears on the screen all the time. Is my broken phone? Or is this a bug in the installation of Firefox OS?
Where Firefox OS does not store these values for wlan connection and waking hours? Is there an internal database that may be corrupt?
Hi Markus,.
I understand that you are having problems with the Wi - Fi connection and the awakening of your phone ZTE C open.
The problem of awakening seems to be similar to what has been reported by other users and is followed on bug 1052245.
You have more information about wake-up issues that you are experiencing? This can be very useful to our engineering team is studying. Please be aware that the ZTE is the manufacturer of your device, and only they are able to release an update.
The wifi problem can be linked to the bug 923324.
Please reply to this message with the following information:
- What is the OS version and Build ID found on the device information page? Please visit this link if you need help to find the ID for your phone.
- Please provide the exact steps to reproduce the problem you are experiencing.
- How many times you experience this problem?
Please be sure to include as much detail as possible, including all Web sites who may have this issue and the error messages that you may receive, exactly as they appear. This will ensure that we have all the information needed to investigate this problem.
-Ralph
-
How can I change the alarm sounds?
The default sound is so annoying in the morning. Is there a way to change the sound of the alarm? I watched a few videos on the sound of the alarm of the Apple Watch on youtube and they had the best sounds. I guess Apple has changed with WOS 2
Hello
I fear that it is not currently possible to change the alarm sound on Apple Watch.
If you want to suggest that Apple considers adding this as a new feature, you can do it here:
https://www.Apple.com/feedback/watch.html
All submissions are read (even if you do not expect to receive a response).
-
Is there a way to generate a report of all definitions of the alarm as well as their client vsphere 4.0 settings?
something like that?
http://www.peetersonline.nl/index.php/VMware/report-vSphere-alarms-with-PowerShell/
-
Problem of XML query structure
Hi experts,
I am looking for help on the following XML query. I have a table (for example) organized as such:
I try to keep the column 'soul' as the attribute of the top-level node, with the "data_elements" as attributes of the children of the 'SOUL '.meas data_element ------- ------------------- ABC rate DEF rate1 DEF rate2 DEF rate3 GHI rate JKL rate1a JKL rate2b
In short, I am looking for the following output, but well... keep coming up short.
I'm unable to get multiple lines of "data_element" under "data_elements" and the single "meas" a single node, any suggestions? My code keeps generating several lines. The crux of the rpt is a constant value of 'false '.<meas id="ABC"> <data_elements> <data_element id="rate"> <rpt>false</rpt> </data_element> </data_elements> </meas> <meas id="DEF"> <data_elements> <data_element id="rate1"> <rpt>false</rpt> </data_element> <data_element id="rate2"> <rpt>false</rpt> </data_element> <data_element id="rate3"> <rpt>false</rpt> </data_element> <data_elements> </meas> .....and so forth...
Thank youYou group and aggregate using XMLAgg:
SQL> set long 5000 SQL> SQL> with sample_data (meas, data_element) as ( 2 select 'ABC', 'rate' from dual union all 3 select 'DEF', 'rate1' from dual union all 4 select 'DEF', 'rate2' from dual union all 5 select 'DEF', 'rate3' from dual union all 6 select 'GHI', 'rate' from dual union all 7 select 'JKL', 'rate1a' from dual union all 8 select 'JKL', 'rate2b' from dual 9 ) 10 select xmlserialize(content 11 xmlagg( 12 xmlelement("meas", 13 xmlattributes(meas as "id") 14 , xmlelement("data_elements", 15 xmlagg( 16 xmlelement("data_element", 17 xmlattributes(data_element as "id") 18 , xmlelement("rpt", 'false') 19 ) 20 order by data_element -- if necessary 21 ) 22 ) 23 ) 24 ) 25 indent 26 ) as result 27 from sample_data 28 group by meas ; RESULT --------------------------------------------------------------------------------
false false false false false false false -
Recovery of OSB road Note Error Handler xml query
Hi guys,.
I don't know if there is a thread that has already been addressed, but I couldn't find anything.
Here's the scenario. I created Proxy Service X (http transport protocol) that routes a message to Business Service Y. Business Service Y called myWebService that is deployed in a remote domain. I have intentionally to cancel the deployment of the EAR that contains myWebService in the remote domain. When the Business Service Y try to call myWebService she will appear in error, the following message:
< con xmlns:con: fault = "http://www.bea.com/wli/sb/context" >
< con: errorCode > BEA-380002 < / con: errorCode >
< con: reason > not found < / con: reason >
< con: location >
< con: node > RouteNode1 < / con: node >
pipeline response - < con: path > < / con: path >
< / con: location >
< / con: fault >
Business Service Z is an independent service that is used to send messages to a queue. I have an route Error Handler node Proxy Service X using a legend Service to route messages to Business Service Z.
Now in the Proxy Service X error of node Road Manager , I would like to recover the original xml query that was received by Proxy Service X and send it to a queue by making use of the previously mentioned Legend of Service that routes messages to Business Service Z whenever the BEA-380002 of error type occurs.
When you look at the response of the legend of Service (by making use of reports), the item entering the http transport layer does not contain the xml request, but simply the metadata of the message. How can I get the original xml to the scenario above query?
Kind regards
Ophola...Add an action to assign the title of the action request routing Actions. Using yield action assign the $body (initial application of XML) in a var, for example bodyvar. Now in the route node error handler, you can get the original query in the variable $bodyvar
Kind regards
Anuj -
Hello, can someone tell if there is a limit on how long the query string can be "Shared Components\Report Queries\Edit Query report". Is there a limit of 4K? When I get back a query that is about 5K and when I hit "Test Report" button I get error:
ORA-06502: PL/SQL: digital or value error: character string buffer too small
If I cut the request less than 4 K, it seems to work.
GeorgeNormal fields in Word RTF are like this: , you just need to insert this manually, put the around="" your="" field="" that="" is="" coming="" into="" the="" rtf="" from=""?>
Thank you
Tony Miller
Webster, TX -
SQL Dev 2.1 connected to a SQL Server query
I use developer SQL to query the oracle db and the results of the query, if I right click I get the following options;
Save grid under the report...
Single record view...
Number of lines...
Find/highlight...
Export data
However, when I do this on a SQL Server I get only the following:
Save the grid in the report...-c' is grayed out and cannot be used.
Single record view...
Number of lines...
Find/highlight...
I don't get the option to export, do anyone know why? or what I can do to get it?With SQL Developer 2.1.0 export feature has been removed for all with oracle database.
In section 2.1.1 export feature works again if you need to export to SQL server, you should switch to 2.1.1.
-
124 limit XML in report queries
Hello
I am defining a query report in the area of shared components to use with an RTF template. It seems to be a problem if your query returns more than 124 columns that none of the XML elements contain all the data. As a < a1 / > is produced instead of xyz < a1 > < / a1 >.
Why would you need a single request with more than 124 items that you might say!
Well I owe produce a form with a very specific layout which is read by an OCR scanner and all letters of a name, address, phone etc is in a box on the form.
I use Apex 3.11.
I really need a way to turn this limitation.
Thank you
ShuntHello
Rather than divide the string in characters separated on the side server, why not do it in the logic of your RTF models? I have no BEEP in hand, at the present time, however, you can perform the logic to get the characters of the 1st, 2nd, 3rd etc. of a string, and then you should be able to bypass any column boundary you touch in the XML file.
Hope this helps,
John.
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone! -
Re: How to reduce the volume of the alarm?
I have some programs that use the beeper system to report that something has happened.
While in desktop computers the good old ringtone usually has an own speaker beside the case,
for laptops, just like the toshiba, it is common that the sound of the alarm sound is mixed with the regular audio driver and so go out with the normal audio of the headphone jack.Now, this beep is really STRONG, and mixer windows vista seems to not have a slider for her...
is it possible to change the volume of the ringtone in a different way?
> have some programs that use the beeper system to report that something has happened.
1. have you checked if there is an option to turn off the sound signal in the programs?
2 you can turn off the beep at all, as shown below:http://img267.imageshack.us/img267/5026/sounduw.jpg
-
OAG - insert timestamps in XML query
Hello
I need to insert timestamps in XML query. Please suggest steps/options/filters to do?
for example
XML request:
< xml >
< timestamp > < / timestamp >
< / xml >
output must be
< xml >
< timestamp > 2006 - 05 - 04T 18: 13:51.0Z < / timestamp >
< / xml >
Kind regards
Ganesh
Hello
You want to use the filter to add an XML node.
Create a JavaScript filter, first to do something like this:
function invoke (msg)
{
now = new Date();
Msg.put (elements "UTCTime", now.toUTCString ());
Returns true;
}
In Add an XML node to the node content add:
${UTCTime elements}
Maybe you are looking for
-
Load failure in iCloud notes Using iOS 9.3.2 on my iphone and on my mac 10.11.4. NOTES on my cell phone were always synchronized on icloud, but I now get 'Notes could not be loaded. There was a problem loading the application due to a lack of resourc
-
Hello I m wondering if anyone knows what the best processor I can put in my Satellite A40, as the current is on its way and so I m wondering if I can put in a Pentium M because I think he has the same socket. Thanks in advance
-
The message indicates that after running a stand-alone program
I met a strange problem when starting to run the program, which is an installation program created to 8.5. The window displays even I'm not using Web server. How to do around this issue? Thank you Ott
-
Can I change the video memory settings?
I have a Compaq Presario SR5333WM desktop PC there MCP61PM-HM (Iris8) integrated graphics using nVidia GeForce 6150SE. I have 2 gig of PC2-6400 (800 MHz) and I am running Vista Home Premium. Now the BIOS is using 64 MB of ram right now. Is there a wa
-
HP Officejet 6600: HP 6600 fax answer long distance calls; worked very well.
My HP Officejet 6600 suddenly uses the fax to answer long distance calls. This can happen because I had lost power. Wiring has not changed. Local and answering calls work very well.