Bug: query results sometimes lose line formatting
Steps:
1. Run a query on "arraycollection adobe flex null pointer"
Result: the 2nd search result "Flex 3 - Using the HitData object" from http://livedocs.adobe.com/flex/3/html/charts_eventsandeffects_03.html has all the line-ends removed (see 1st screenshot). When I go to the URL, the code looks OK (see 2nd screenshot), so it seems likely that Blueprint is somehow mangling the file.
Thanks for you feedback! We have filed a bug to address code formatting problems. Stay tuned for the next release.
Mira Dontcheva
Research Scientist
Adobe Systems
Similar Messages
-
Numbering query results with a line number in SQL*Plus
Doesn't it stand to reason that in SQL*Plus there would be a way to number each query results sequentially with line numbers starting at 1 to n -- something option like from a SET command? I'm not talking about linesize.
There's a column rownum the engine adds into the result sets, just add it to the select list. Can use it to limit the result set (with some limitations) i.e.:
select rownum, ... from ... where rownum <= 100
Can't use ">=", that condition will never be met but a subset could be used:
select * from ( select rownum as linenr, tab1.* from ... ) where linenr between 10 and 20 -
Save query results in pipe delimited format
I am running a query in SQL Developer. Can you please tell me how to save and/or export the results in pipe delimited format? Thanks....
You just need to right click in the results grid, then chose export and complete the following wizard.
For pipe delimited files the file format should be delimited and then you will need to change the "delimiter" to a pipe. -
Wrong query results: due to date format?
hello,
I have oracle 11 and when I execute this query:
select MYDATE from mytable order by MYDATE DESC;
it get me a bad order:
MYDATE
25-MAR-09
13-MAR-09
10-MAR-10
10-MAR-10
31-JAN-10
29-JAN-10
28-JAN-10
08-DEC-09
07-DEC-09
06-DEC-09
05-DEC-09
is it may due to a wrong date format?
where have I to look out? init.ora?But, there is no problem at my end (Using Oracle 10.2.0.1 on win xp):
SQL> create table t(mydate date);
Table created.
SQL> insert into t values(to_date('25-MAR-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('13-MAR-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('31-JAN-10','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('07-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('05-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('06-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('08-DEC-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('10-MAR-09','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('29-JAN-10','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('10-MAR-10','DD-MON-YY'));
1 row created.
SQL> insert into t values(to_date('28-JAN-10','DD-MON-YY'));
1 row created.
SQL> select * from t;
MYDATE
25-MAR-09
13-MAR-09
31-JAN-10
07-DEC-09
05-DEC-09
06-DEC-09
08-DEC-09
10-MAR-09
29-JAN-10
10-MAR-10
28-JAN-10
11 rows selected.
SQL> SELECT MYDATE FROM T ORDER BY MYDATE DESC;
MYDATE
10-MAR-10
31-JAN-10
29-JAN-10
28-JAN-10
08-DEC-09
07-DEC-09
06-DEC-09
05-DEC-09
25-MAR-09
13-MAR-09
10-MAR-09
11 rows selected.
SQL> SHOW PARAMETER NLS_DATE;
NAME TYPE VALUE
nls_date_format string
nls_date_language stringCan you show us the output of
show parameter nls_date;
Regards
Girish Sharma -
Returning query results in XML format
Besides using custom tag library, does anyone know any methods or techniques that i can retrive the query results from database in XML format. for example, i have a table named student in database like this:
StudentNo Name Gender Degree
123 Tony male B.Comp.Sci.
456 Tom male B.Fiance
343 Mary female B.Accountingso, if i have query select * from table student, i would get someting like the following:
<row>
<studentNo>123</studentNo>
<name>Tony</name>
<Gender>male</Gender>
<Degree>B.Comp.Sci</Degree>
</row>
<row>
<studentNo>456</studentNo>
<name>Tom</name>
<Gender>male</Gender>
<Degree>B.Finace</Degree>
</row>
The reason i am asking for this is i need query results returned in XML format, so i can wrap XSLT tag around, and apply for HTML, WML, and XHTML template resprectively so i can display them on different terminals. any help is appreciated.I have this method in a ResultSetMapper class:
* Return result sets as an XML stream, with root tag named
* "results", one "result" tag per row, and "result" child tag
* names equal to the column name
* @param query result set
* @param list of column names to include in the result map
* @throws SQLException if the query fails
* @throws JDOMException if the XML stream creation fails
public static final Document toJDOM(ResultSet rs, List wantedColumnNames)
throws SQLException, JDOMException
Element rows = new Element("results");
int numWantedColumns = wantedColumnNames.size();
while (rs.next())
Element row = new Element("result");
for (int i = 0; i < numWantedColumns; ++i)
String columnName = (String)wantedColumnNames.get(i);
Object value = rs.getObject(columnName);
row.addContent(new Element(columnName).setText(value.toString()));
rows.addContent(row);
return new Document(rows);
}It uses JDOM from www.jdom.org. - MOD -
Export query results to excel from forms
Are there any ways to export query results to MS Excel format files from a form.
Thanks.Here's my working code out of one of my forms that does this:
PROCEDURE export_transactions_to_excel IS
-- Declare the ole objects
application ole2.obj_type;
workbooks ole2.obj_type;
workbook ole2.obj_type;
worksheets ole2.obj_Type;
worksheet ole2.obj_type;
cell ole2.obj_type;
-- my variables
rowCounter Number := 1;
local_cursor_Record number := :System.Cursor_Record;
old_cursor_Style varchar2(100);
errors_occurred boolean := false;
Ole_Error Exception;
pragma exception_init( Ole_Error, -305500 );
my_alert_id ALERT;
alert_response NUMBER;
procedure place_value_in_cell( rownum_in in number
, colnum_in in number
, value_in in varchar2 )
is
-- Declare handles to OLE argument lists
args ole2.list_Type;
begin
args := ole2.create_arglist;
ole2.add_arg(args, rownum_in); /* row number */
ole2.add_arg(args, colnum_in); /* column number */
-- the next line is for excel97
-- cell := ole2.invoke_obj( worksheet, 'Cells', args );
cell := ole2.get_obj_property( worksheet, 'Cells', args );
ole2.Destroy_arglist( args );
ole2.set_property( cell, 'Value', value_in );
ole2.release_obj (cell);
end place_value_in_cell;
procedure SaveSpreadsheet
is
args ole2.List_Type;
vDateStamp varchar2(20);
begin
vDateStamp := to_char(sysdate,'mmddyyyy') | | '_' | | to_char(sysdate,'hh24miss');
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'C:\PAPRETCC_' | | vDateStamp | | '.XLS');
OLE2.INVOKE(worksheet, 'SaveAs', args);
OLE2.DESTROY_ARGLIST(args);
--args := Ole2.Create_ARgList;
ole2.invoke( application, 'Quit' );
end SaveSpreadSheet;
procedure Open_EXCEL_Workbook is
Begin
application := ole2.create_obj('Excel.Application');
--ole2.set_property( application, 'Visible', 'True' );
-- Return object handle to the Workbooks collection
workbooks := ole2.get_obj_property( application, 'Workbooks' ); -- invoke_obj w/ excel 97
-- Add a new Workbook object to the Workbooks collection
workbook := ole2.invoke_obj( workbooks, 'Add' );
-- return object handle to the Worksheets collection for the
-- Workbook
worksheets := ole2.get_obj_property( workbook, 'Worksheets' ); -- invoke_obj w/ Excel97
-- Add a new Worksheet to the Worksheets collection
worksheet := ole2.invoke_obj( worksheets, 'Add');
end open_EXCEL_workbook;
PROCEDURE Write_Column_Headers IS
BEGIN
place_value_in_cell(rowCounter,1, 'Payer Name');
place_Value_in_cell(rowCounter,2, 'Payer Address');
place_value_in_cell(rowCounter,3, 'SSN');
place_value_in_cell(rowCounter,4, 'Account');
place_value_in_cell(rowCounter,5, 'Refund Receipt');
place_value_in_cell(rowCounter,6, 'Pretax Allocation');
place_value_in_cell(rowCounter,7, 'Tax Allocation');
place_value_in_cell(rowCounter,8, 'Total Amount');
place_value_in_cell(rowCounter,9, 'Orig Receipt');
place_value_in_cell(rowCounter,10,'Orig Date');
place_value_in_cell(rowCounter,11,'TR Number');
place_value_in_Cell(rowCounter,12,'Date');
place_Value_in_cell(rowCounter,13,'Status');
place_value_in_cell(rowCounter,14,'Vt Number');
rowCounter := rowCounter + 1;
END Write_Column_Headers;
PROCEDURE Export_The_Data IS
original_receipt number;
original_date DATE;
original_transmittal_number number;
BEGIN
-- Return object handle to cell A1 on the Worksheet
Go_block('Transactions');
First_Record;
LOOP
IF alert_response = ALERT_BUTTON2 or
(alert_response = ALERT_BUTTON1 and nvl(:transactions.rg_approval,'N') <> 'N' )
-- :system.record_status = 'CHANGED')
then
place_value_in_cell( rowCounter, 1, :TRANSACTIONS.NDB_PAYEE_NAME );
place_value_in_cell( rowCounter, 2, nvl(:TRANSACTIONS.NDB_PAYEE_ADDRESS,'unknown') );
place_value_in_cell( rowCounter, 3, nvl(:TRANSACTIONS.NDB_SSN,'unknown') );
place_value_in_cell( rowCounter, 4, :transactions.NDB_DESCRIPTION );
place_value_in_cell( rowCounter, 5, to_char(:Transactions.transaction_group_EID) );
place_Value_in_cell( rowCounter, 6, to_char(:transactions.ndb_pretax_amount) ); -- chg
place_ value_in_Cell( rowCounter, 7, to_char(:transactions.ndb_tax_amount) );
place_value_in_cell( rowCounter, 8, to_char(:transactions.amount_including_taxes) );
original_receipt := revenue_pkg.original_receipt_number(
:transactions.transaction_group_eid,
:transactions.allocation_eid,
:transactions.allocation_table );
original_date := revenue_pkg.original_receipt_date(
:transactions.transaction_group_eid,
:transactions.allocation_eid,
:transactions.allocation_table );
original_transmittal_number := revenue_pkg.transmittal_number_for_receipt(original_receipt);
place_value_in_cell( rowCounter, 9, nvl(to_char(original_receipt),'unknown') );
place_value_in_cell( rowCounter, 10, nvl(to_char(original_date,'mm/dd/yyyy hh24:mi:ss'),'unknown') );
place_value_in_cell( rowCounter, 11, nvl(to_char(original_transmittal_number),'unknown') );
-- COMPTROLLER COLUMNS
IF ( alert_response = ALERT_BUTTON1 and nvl(:transactions.rg_approval,'N') <> 'N' )
THEN
place_value_in_cell( rowCounter, 12, to_Char(sysdate,'mm/dd/yyyy') );
place_value_in_cell( rowCounter, 13, nvl(:transactions.rg_approval,'N') );
place_value_in_cell( rowCounter, 14, nvl(to_char(:location.vt_number),'NULL') );
END IF;
End If;
exit when :SYSTEM.LAST_RECORD = 'TRUE';
NEXT_RECORD;
rowCounter := rowCounter + 1;
END LOOP;
END Export_The_Data;
/* ----------------------------------- main procedure --------------------------------------*/
BEGIN
Begin
my_alert_id := Find_Alert('THREE_BUTTON_ALERT');
IF NOT ID_NULL( my_alert_id ) then
alert_Response := SHOW_ALERT( my_alert_id );
If (alert_response = ALERT_BUTTON1) OR
(alert_response = ALERT_BUTTON2) then
old_Cursor_style := get_application_property( CURSOR_STYLE );
set_application_property( CURSOR_STYLE, 'BUSY' );
Open_EXCEL_WorkBook;
Write_Column_Headers;
Export_The_Data;
Else
Raise Form_Trigger_Failure;
End If;
Else
Raise Form_Trigger_Failure;
End If;
exception
when Form_Trigger_Failure then
RAISE;
when Ole_Error then
AlertSend( 'There was an error exporting the data to Microsoft Excel (receipt# ' | |
to_Char(:transactions.transaction_Group_eid) | | ')', false );
errors_occurred := TRUE;
when others then
AlertSend( SQLERRM, false );
errors_occurred := TRUE;
End;
Ideally, I'd like to call SaveSpreadsheet in Export_The_Data, and just ExitExcel here,
but it prompts for whether to save the changes and I don't know how to get around that
right now. SO, we just save and exit, regardless.
SaveSpreadSheet;
-- Release the OLE objects
ole2.release_obj (worksheet);
ole2.release_obj (worksheets);
ole2.release_obj (workbook);
ole2.release_obj (workbooks);
ole2.release_obj (application);
IF NOT errors_occurred then -- stay on the record that caused the error
Go_Record( local_cursor_Record );
End If;
Set_Application_Property ( CURSOR_STYLE, old_cursor_style );
EXCEPTION
When Form_Trigger_Failure then
null;
When Others then
AlertSend( SQLERRM );
END export_transactions_to_excel; -
Query Results to the Application Server
Hello Experts,
We have a requirement where when we execute a query, the query results in the excel format should be placed in a folder in the application server.From the Application server I need to send these results using the FTP service to the different locations.
Can someone please suggest me how to place the query results in the application server and how to send these results using the FTP service to the different locations.
Regards,
SachinHi Sachin,
Yes its possible
Using RSCRM_BAPI TCode schedule the report based on your requirement i.e. daily, weekly...etc. And then dump the report result into one path (Directory) in Application Server.
Create FTP/SFTP User ID in Application server level in BW System.
Check the below link for more info
/people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
Regards
KP -
I am wondering if anyone has or knows how to get BW query results in an RSS feed.
I have a pet project to see if I can populate an RSS feed with my P&L out of my CO-PA fed BW. If the results of a query are sitting on the WAS there should be a way to grab them for RSS.....
Anyone....anyone....?
Thanks,
Brianthis is not a OLAP bapi but a custom function which returns the query results in a xml format, may be this could be useful for you.
check out the link.
/people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
Regards
Raja -
I have Word 2011 on a Mac Book Pro and have had problems with a dissapearing cursor - it makes editing tricky
After googling it I found out that there is a bug where the Mac loses focus if you click away from the document - it also does this with italics according to other users.
I had a play with it and found out that when I click on the toolbar in a document where this happens, the cursor disappears, e.g. changing font colour etc. And then, when I click on Format - Font - Cancel it returns
I'd be interested if anyone else has a comment to add, please do
thanksBTW (speaking as a Dad of 3 daughters in Grad school) if you don't already have and use a DropBox account, or some other similar online "cloud" based backup of your school documents, you should start doing so immediately. By keeping all of your important documents in the Dropbox folder on your computer, you have instant access to them from any other computer (or iPad), should you be w/o your computer while in for repairs (or if, God forbid, it is stolen). It's free for 2 GB of online storage, which is more than enough for a few years worth of Word documents, etc. (If you get other people to sign up via your email "invitation", then Dropbox gives you even more free storage space.) Every time you close a document, it is updated on the Dropbox servers (encrypted), if it is in the Dropbox folder (assuming you give it a few seconds to update before turning off your computer). Do a google search of "Cloud based storage comparisons" to compare the amount of free space each of the competing services give you.
-
Bug in pinning of results tabs results in multiple query results tabs
In Tools > Preferences > Database > Worksheet there is an option called Automatically Freeze Reult Tabs.
This option, when unchecked, does not seem to be working. New query results tabs are created when pressing F9 to run selected query text.
Elsewhere I have read that this is a known bug (9247525). A work-around is said to be to not select text before pressing F9. However, this does not seem to always work for me. Sometimes SQL Developer tries to execute code that is outside of the immediate query. The result is usually a query error.
Thus a whole bunch of query result tabs build up.
Is this bug being addressed? Is there a place where these bugs can be looked up? Or that status of a bug checked?
Thanks for any assistance.
(I am on 2.1.0.63. On Windows.)
--MichaelThe bug you have found will be somewhere in the list of work for the SQL Developer team and should get fixed and included in a public release/patch eventually.
It sounds like your issue with the workaround (statement being identified based on cursor position) is with SQL Developer's pickiness with what is the end of a statement. As a general rule, SQL Developer will only consider a ; at the end of a line or a / starting a new line as the end of a statement - it does not consider a blank line the end of a statement. For example, the following is all considered a single statement:
select * from dual
select * from dual;theFurryOne -
Date format in Query Result Window
In recent versions on OSD (trying with V3.2.20.09 Build MAIN-09.87) I've been unable to change the date format for results shown in the query results window via the NLS settings in Preferences, it's the same for other users on v3 in my area. Can anyone advice on whether anything can be done to resolve this issue or is there a bug in recent additions of OSD
Frustrating having a result show as 01-DEC-12 and I don't know whether it's 01-DEC-2012 or our default date of 01-DEC-4712 without having to hard code a to_char in my sql which I don't want to be doing all the time to analyse my results
I have an old version 1.5.4 Build MAIN-5940 and changing the NLS settings in preferences refrects correctly in the query results window
Any advice appreciated, ThanksThanks, looks like it's permission, tried on a different database supposed to be the same and it works when I update the preferences or run the alter session statement. Call to my admins to get on the case
Ta
for anyone else having simular issues, help are the statements I've tried to confirm it's permissions
alter session set NLS_DATE_FORMAT = 'DD-MON-RR HH24:MI:SS'; -- Original
alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR HH24:MI:SS';
commit;
SELECT *
FROM nls_session_parameters
Edited by: lakeuk on 14-Nov-2012 06:37 -
Sending Email with Query Result (Table Format)
Hi,
I have a query result from ExecuteSQL task e.g.:
ID Product
1 Pencil
2 Crayon
3 Eraser
I want to send an email with the above query result and I want it to be in Table format (such as in Microsoft Word with rows and column lines) to allow better readability to the receiver.
Is it possible in SSIS?
cherrieshIt has to be HTML format . Read Tony's article
http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/03/28/send-table-or-view-as-embedded-html-lt-table-gt-in-an-email-stored-procedure.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Output query result in XML format
folks:
could anybody provide more information
about how to generate query result in
xml format? looks like DBXML is for demo only
and i have heard that PLSQL XML parser is the way to go; so far i have not found
a sample yet on how to actually
do the XML generation; if you know more
about it, please let me know; thanks in
advance.
BillHere are some sample apps that might interest you:
[list]
[*][url [URL=http://technet.oracle.com/tech/xml/xsql_servlet/index2.htm?Code&files/ffhome.html]The]http://technet.oracle.com/tech/xml/xsql_servlet/index2.htm?Code&files/ffhome.html]The XML Flight Finder
[*][url [URL=http://technet.oracle.com/sample_code/tech/xml/xmlb2b/doc/xb2bhome.html]B2B]http://technet.oracle.com/sample_code/tech/xml/xmlb2b/doc/xb2bhome.html]B2B with XML
[list]
Enjoy,
-rh -
Date Format in Visual Studio Query Result Window
Most vendor tools let you change the date format to show datetime in its query results window.
But .NET does not have this.
The ability to change this should be in located in Tools|Options but its not there.
Can it be added in the next release?
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-RR HH:MI:SS' does not work. btw.
.NET and/or ODT over-rides it.Why would you expect Microsoft to write stuff for an Oracle plugin?! Why on earth would you want to see anything other than the actual raw data that YOU requested in the results of a query? Surely formating/displaying a datetime is a presentation layer thing not a database layer thing! If you're really that bothered re-write your SQL till you get what you want.
-
Need blnak line in query result
In sqlplus query result, i need a blank line between each row. how can I get it? solution please.
There are various ways...
If you actually want generated blank rows...
SQL> ed
Wrote file afiedt.buf
1 select decode(rn, 1, empno) as empno
2 ,decode(rn, 1, ename) as ename
3 ,decode(rn, 1, job) as job
4 ,decode(rn, 1, mgr) as mgr
5 ,decode(rn, 1, hiredate) as hiredate
6 ,decode(rn, 1, sal) as sal
7 ,decode(rn, 1, comm) as comm
8 ,decode(rn, 1, deptno) as deptno
9 from emp, (select rownum as rn from dual connect by rownum <= 2) r
10* order by emp.empno, r.rn
SQL> /
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
1111 WILLIS CLERK 7902 18-JAN-08 900 20
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10
30 rows selected.
SQL>
Maybe you are looking for
-
Oracle - Using XML in Oracle/ SORRY double Post
SORRY for double Post! Good Morning! I wanted to insert some xml Data into my Orcale XML DB: First of all I registered 2 Schemas required for the XML, like this: Begin DBMS_XMLSCHEMA.registerSchema( schemaURL => 'Mailpiece_Processing/oif_dtypes', sch
-
Web service response object contains no values
Hi, Using Netweaver, I've created an EJB-based web service that contains a single method. The method takes two input parameters and returns as a response, a data transfer object (DTO) containing several boolean values. When I test this web service w
-
Why is it every time I try to buy itunes I am diverted to the Chinese store and cannot pay for my items? Can anyone help? I have tries to select the English store but it will not allow me to proceed. I think it has been hacked in the past as there is
-
JMS and Data Cache Synchronization
We have setup Toplink to do cache synchronization using Tibco JMS. For some reason Toplink connects to JMS using the name "anonymous" in addition to connecting with the user name we specify in the code. Toplink also seems to connect to some queue in
-
Speech synthesis service can't open on install of Maverick
Hi. My title says it all. I had the Apple Store folks ugrade my OS to 10.9.5. today from 10.6.8. I've sorted most things out but did get one message "Speech Synthesis Service App could not be openened because it is damaged or incomplete". Sure enough