Bug in Application/Query Builder?
I created an SQL query using the query builder in 10g. It didn't work. I pasted the same query into SQL Commands. It worked. I pasted the same query into the Application Builder. It didn't work. (By didn't work, I mean it gave me 500 rows of a 2000+ row view.) Has anyone come across this before? For the life of me, I can't figure out what's going wrong.
Hi
I think, it isn't a bug.
Per default all tabular forms are limited by 500 rows.
You see at the end the message "row(s) 1 - 15 of more than 500"
Greetings
Sven
Similar Messages
-
Query Builder - Where Clause - Could not format error using date comparison
We've come across a bug in the Query Builder, under the Create Where Clause tab, if you select a column of Date type plus one of the comparison operators =, !=, <, >, <=, >=, BETWEEN or NOT BETWEEN it displays an error in the Logging Page:
Level: Severe
Source: o.d.r.queryBuilder.SQLGenerator
Message: Could not format :2010-09-02 16:20:31.0
Then under the Show SQL tab it doesn't display the date(s) you selected, e.g.
WHERE LAST_UPDATE BETWEEN AND
Also the View Results tab does not display any results.
You can still press Apply to add the SQL as is to the editor window and from there you have to manually code in the date parameters.
We're using the latest version of SQL Developer 2.1.1.64.45 Windows 32bit version with JDKHi Gordon,
When I add the following lines:
declare @refdt1 date
set @refdt =
/*select 1 from jdt1 t0 where t0.RefDate*/ '[%1]'
declare @refdt2 date
set @refdt =
/*select 1 from jdt2 t0 where t0.RefDate*/ '[%2]'
WHERE T0.RefDate >= @refdt1 and T0.RefDate <= @refdt2
... the error message is now:
Must declare the scalar variable @refdt1
Note: Before adding these lines, the query works perfectly, and returns totals from the whole database (with dynamically generated column headings!)
Thanks
Leon Lai
AMENDED QUERY:
declare @refdt1 date
set @refdt1 =
/*select 1 from jdt1 t0 where t0.RefDate*/ '[%1]'
declare @refdt2 date
set @refdt2 =
/*select 1 from jdt1 t0 where t0.RefDate*/ '[%2]'
--------- I inserted the 6 lines above ---------------------
DECLARE @listCol VARCHAR(2000)
DECLARE @query VARCHAR(4000)
SELECT @listCol =
STUFF
( SELECT DISTINCT '],[' + CAST(month(T0.RefDate) AS varchar)
FROM JDT1 T0
FOR XML PATH('')
), 1, 2, ' ') + ']'
SET @query =
'SELECT * FROM
(SELECT Account, month (T0.RefDate) Month , Debit
FROM JDT1 T0
------------------- I add the WHERE clause below --------------------
WHERE T0.RefDate >= @refdt1 and T0.RefDate <= @refdt2
GROUP BY Account, RefDate, Debit
) S
PIVOT
Sum(Debit)
FOR Month IN ('+@listCol+')
) AS pvt'
EXECUTE (@query)
Edited by: LEONLAI on Oct 21, 2011 2:36 PM -
BUG? Query Builder Fails in IE 9
I'm using a hosted setup with Application Express v 4.1.1.00.23
The query builder works with Firefox and Chrome but when I try it with IE9 (9.0.8) the bottom frame doesn't respond to the upper frame (like selecting columns). When I press Run the results pane reads "Please enter a valid Query".
GregAll,
This appears to be bug 13825002, which was fixed in APEX 4.2. To verify, please log into apex.oracle.com, and see if it reproduces there.
Regards,
Marc -
Query Builder Application eror
I am using Query Builder 6.0 and everytime I try to use it I get an application error as follows:
OBE60.EXE
access violation ocx0000005
address ox0040F081
I have found that completely uninstalling and reinstalling all Oracle products seems to fix the problem in the short term. The install works fine the first time them if I close it and restart the app, I get the application error. I am running a 2.2 GHz Compaq with NT4, SP6a. Any insight on how to fix would be appreciated.Hi Paul
This looks purely a bug. Unfortunately, there are no regular patches for 6.0 release. I would recomend you to move to 6i or 9i release.
Thanks
Rohit -
2 Bugs - Apex 4 - Websheets & Query Builder
Hello,
Just to make someone from the Apex Dev team aware if they aren't already.
I've come across what i think is a bug in Websheets where if you create a data grid or interactive report and then save a Named Copy of the report (so that the select list appears at the top of the report/grid with the saved report names). When you then click on any of the drop down menus like Actions, Manage, or any of the drop down tabs at the top of the page (Page, Data, Annotations, Administration) the background of the menu goes transparent making it really difficult to read the options in the menu if there is some text behind it.
If you then delete the saved report so that you just have the one version, and refresh the page the problem dissapears. I've only found this issue when using Internet Explorer 8 (not sure about earlier versions), as far as I am aware this doesn't happen in Firefox or Chrome.
Also if you log into Apex using Google Chrome and go to the Query Builder under SQL Workshop. If you click and add a table with quite a few columns (10 or more) the scroll bar is missing down the right hand side which means there is no way to select/view all of the columns in that table.
Thanks.Better make that 3 bugs.
Create a data grid from spreadsheet data. There must be a very small limit on the data you can actually upload using this thing, I just tried to upload 50 rows of data containing 12 columns (not exactly a massive amount). The data is a fictional list of employees, I have pasted the tab delimited data below.
It fails, but rather than giving an error message like "Too Much Data" it just clears out the text area and says "Data Must Be Provided". Also it doesn't seem to say anywhere what the limit on pasted data is.
I'd really appreciate it if somebody could respond to this ticket to let me know that these issues have been acknowledged.
Thanks.
Data:
FIRST_NAME LAST_NAME ADDRESS_LINE_1 ADDRESS_LINE_2 TOWN_CITY COUNTY POSTCODE PHONE_NUMBER1 PHONE_NUMBER2 EMAIL DEPARTMENT JOB_TITLE
Simon O'Donnell 387 Long Island City Drive Tempe AZ 21621 54550634696 53657655919 [email protected] Accounting Accountant
Stanley McKean 7 Palminteri Street Cape town CA 34854 34283228110 90968854129 [email protected] Accounting Accountant
Ronny Baldwin 33rd Street Ringwood NJ 14229 54153114191 19892904897 [email protected] Accounting Accountant
Chanté Graham 77 Neuwirth Street Clark NJ 17644 44238155651 42555297017 [email protected] Accounting Accountant
Owen Koyana 118 Clive Drive Ittigen OH 20453 79979711628 94321262787 [email protected] Accounting Accountant
Suzi Chan 45 Sydney Road Freising CA 20004 24306244670 15892017656 [email protected] Human Resources Administrator
Ashton Whitaker 23 O'Connor Drive Saint Paul MN 17649 33383575194 40490409444 [email protected] Human Resources Administrator
Neneh Minogue 52nd Street Chambery NJ 29477 54967529479 36274191772 [email protected] Human Resources Administrator
Angelina Ojeda 70 Jane Drive Suite 300 Ben-Gurion AZ 7837 24681394213 21589555777 [email protected] Human Resources Administrator
Emilio Minogue 22 Bush Blvd Bern OH 33137 64612176871 73714964758 [email protected] Human Resources Administrator
Roberta Sarsgaard 87 Walken Road Mt. Laurel NJ 25063 7121830568 54570046512 [email protected] Human Resources Administrator
Marc Lunch 65 Al Drive Almaty NJ 5151 96908142426 26541291842 [email protected] Human Resources Administrator
Parker Warburton 11st Street Koeln AZ 24210 52725935422 68454292728 [email protected] Human Resources Administrator
Geoffrey Eastwood 868 Buffy Street Kristiansand AZ 34152 61772127668 41794991280 [email protected] Human Resources Administrator
Jerry Logue 262 Tilda Road London KS 2A8 9C7 95746233530 52999457363 [email protected] Human Resources Administrator
Louise Schneider 11st Street Suite 201 Gaithersburg MD 34694 76872385544 42503448008 [email protected] Human Resources Administrator
Omar Thewlis 91st Street Moscow KS 26789 34185768802 27734141241 [email protected] Human Resources Administrator
Dustin Del Toro 11 Wilkinson Drive La Plata CA 11361 69771044666 48947772075 dustin.deltoro@gdatechnologies Human Resources Administrator
Meg Llewelyn 64 Timothy Drive Québec CA 4D0 9X7 83256270181 2691966515 [email protected] Human Resources Administrator
Glen Willard 27 Marie Street Spresiano OH 8729 29232670035 49180707659 [email protected] Human Resources Administrator
Illeana O'Sullivan 35 Ruiz Road Manchester NJ 5Z8 2R3 47699176357 26298603036 illeana.osullivan@trekequipmen Sales Telesales
Mint O'Donnell 68 Cook Street Framingham MA 25741 9385886977 40068593037 [email protected] Sales Telesales
Ernie Charles 47 Suchet Ave Lehi UT 11640 12315092268 41921491553 [email protected] Sales Telesales
Tramaine Perez 775 Curry Suite 200 Beaverton OR 10052 24152547387 90360041459 [email protected] Sales Telesales
Bernard Mahoney 52nd Street Ludbreg AZ 21930 65063421715 47887052203 [email protected] Sales Telesales
Todd Stuermer 40 Wagner Ave Wichita KS 26462 12471889987 58730543507 todd.stuermer@quakercitybancor Sales Telesales
Millie Amos 553 Hatfield Street Sao paulo MA 5981 68256282709 14178281728 [email protected] Sales Telesales
Franz Akins 3 Gryner Drive Livermore CA 26213 81335649303 16862350942 [email protected] Sales Telesales
Yaphet Bonham 72nd Street Suite 101 Anyang-si MA 6327 43485048831 37956286527 [email protected] Sales Telesales
Howie Flanagan 49 Imperioli Street Sihung-si NJ 1809 43066563105 63396837113 [email protected] Sales Telesales
Steven Balk 861 Assante Ave Ulsteinvik CA 3526 18463427833 99316238432 [email protected] Sales Telesales
Alicia Harrison 84 Jakarta Drive Akron OH 3733 18721340083 57094073560 [email protected] Sales Telesales
Whoopi Parish 26 Warden Street Mendoza NJ 14844 85721542820 48311086266 [email protected] Sales Telesales
Owen English 14 Douala Drive Clark NJ 11094 2283985082 34817135523 [email protected] Sales Telesales
Chubby Yulin 84 Gerald Drive Columbia MD 11757 32561417707 89267451034 [email protected] Sales Telesales
Glenn Pitney 3 Voight Di Savigliano MD 34263 83395577226 43370989196 glenn.pitney@quicksilverresour Development Develoeper
Mika Paymer 89 Flanagan Drive St. Louis MO 15086 35622263548 54260584499 [email protected] Development Develoeper
Murray McGovern 89 Donald Ave Immenstaad MD 17322 73254698420 47330422851 [email protected] Development Develoeper
Ernie Redford 34 Ehningen Suite 200 Solikamsk OH 39976 86055059780 48924782157 [email protected] Development Develoeper
Avril DeVita 55 Karlsruhe Road Meerbusch OH 1951 51850605994 1153570187 avril.devita@usdairyproducers. Development Develoeper
Thelma Rush 4 Andre Road Suite 100 Dietikon MO 27313 67647167317 29429631371 [email protected] Development Develoeper
Thin Nicholson 88 Slater Ave Nancy AZ 7872 9887481644 320600125 [email protected] Development Develoeper
Roy Crimson 82 Jacksonville Road Dublin KS 36575 85597843215 71835543117 [email protected] Development Develoeper
Murray Stanley 86 Aracruz Street Ciudad del Este MO 9581 73783495943 52407792648 [email protected] Development Develoeper
Meryl Zellweger 58 Charles Street Suite 201 San Dimas CA 13921 87581534618 51562540607 meryl.zellweger@millersystems. Development Develoeper
Jake Buffalo 60 Cox Drive San Dimas CA 27076 22095103035 73337559023 [email protected] Development Develoeper
Drew Sharp 23 Masur Road Milton Keynes MO 6B7 4J3 98371242672 96437093331 [email protected] Development Develoeper
Vonda Reno 74 Bo Road Reykjavik NJ 21777 55961683544 30874610356 [email protected] Development Develoeper
Ashton Knight 6 Flack Road Storrington CA 7A5 0O0 96863906342 52454871460 [email protected] Development Develoeper
Hookah Madonna 44 Dabney Drive Traralgon AZ 2958 65935470447 48936698434 [email protected] Development Develoeper -
Query Builder in 3.0 Can it be called and used as part of an application
The query builder component is nice from an end user perspective. Can it be called in version 3.0 as part of an application? i.e. the user gets the tables listed in the app and can create the sql query as done when building the app? If so, does anyone know why not? Seems like all you'd have to limit it to would be the all_tables view where owner = 'application owner'. Has anyone tried to call this module?
BobHI Bob,
No you cannot call the query builder from your application.
You have a couple options though, one is to give the user developer rights, and then they can access the query builder, or you can search the forum for QBE, and that will generate 3 pages of hits. There's a couple generic variations out there that may suffice.
Hope this helps,
Bill Ferguson -
Query Builder in Web application
Hi, I want to develop a web application, which include query builder for database using Jdeveloper nad ADF. In this application must be page with this queries and execute them. The problem is that i have no idea how to realize it, Please help me
Manuals, links and other information would be good.<puts flame shields on>
APEX has this out-of-the box, perhaps that would be a better tool for the job?
<ducks>
John -
Tables not in Query Builder table list bug?
In HTML DB version 1.6.0.00.87 we have tables defined in our schema in our workspace. When we create a view and click on the [Query Builder] link, no tables are in the drop down list for our schema. Why? The schema is there. I can go into the SQL Workshop and query the records our of the tables, but they are not listed in the [Query Builder].
I tried this same function but with my workspace at htmldb.oracle.com. The tables in my schema are listed there.
Is this a bug that was fixed in version 1.6.1.00.02?There is one schema assigned to the workspace. That schema is listed in the pop-up window. Here are the steps I am doing:
1.) Click on SQL Workshop
2.) Click on Create Object
3.) Click on View
4.) The correct schema is listed in the Schema field. There is only one schema in the drop-down list for the Schema field.
5.) Click on [Query Builder]. A separate browser window appears with the correct schema. There is only one value in the drop-down list for the schema. "- Select Table -" is in the TABLE field.
6.) I click on the TABLE field to get a list of tables for the schema. Only "- Select Table -" is listed. No other tables are listed.
I can cancel the Create View and return to the main page of the SQL Workshop. I can click on Tables to see what table are available. I select the correct SCHEMA and see the list of tables.
I tried this in the same version of HTML DB (v 1.6.0.00.87) in a different database ie. a different HTML DB repository and received the same results, missing tables in the pop-up page
I do not know why the tables do not list in the [Query Builder] for the Create View. -
How to use Query Builder as a component inside our applications?
I am very new to Apex, but I loved it until now :)
After my first experience I am thinking to advice Apex as an Oracle database reporting environment to some of our marketing and sales guys. These guys are familiar to basic SQL and table, index concepts and their need is to create dynamic reports, take their output to excel and email these reports all around the company :)
My first question is can Apex 3.1 work with 9.2 - 10.1 - 10.2 and 11.1?
My second question is how can I open the Query Builder inside the Create Region>SQL Report wizard to my users inside a custom user defined form?
My third question is if the answer of second question is it is not possible, then anyone can advice on alternatives for this kind of a need with Apex?
My last question is how Apex can handle a distributed database environment, like Java applications can it open several database connections as needed?
Thank you.Hello,
My first question is can Apex 3.1 work with 9.2 - 10.1 - 10.2 and 11.1?Correct. That's said in the installation guide.
My second question is how can I open the Query Builder inside the Create Region>SQL Report wizard to my users inside a custom user defined form?This does not yet exist out of the box. You can have a look how Oracle did it and try to mimic it in your own application.
My third question is if the answer of second question is it is not possible, then anyone can advice on alternatives for this kind of a need with Apex?Import app 4500 in your own workspace. On page 1002 you should find the query builder.
Again you can't just run this, you would need to make customizations to it. Alternatively you can add just a textarea on a page where you can run SQL statements from. But I guess you want to have the graphical display?
My last question is how Apex can handle a distributed database environment, like Java applications can it open several database connections as needed?APEX is living in the Oracle database. So everything inside that database you can potentially work with. If you need data from other sources you can use a database link or hytrogenous connectivity. Basically if you can do it from the Oracle database, you can also do it from within APEX.
Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://www.apex-evangelists.com/
-- http://www.apexblogs.info/ -
Query builder within application
Hi ,
is that possible to call query builder
as a pop up window from the application ?
Thanks ...Hi,
Not sure, if it is too late for replying for this issue. But, I found the same issue today when I was trying to build the graph(multi-line chart) making use of Function Body returning SQL.
"'SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Function returning SQL query: Query cannot be parsed within the Application Builder.'"
Here is the work around for the problem
Step 1.
Define two hidden items. (depending on the number of series you are having, in this case, it is two). name it like P25_GRAPH_SQL1 and P25_GRAPH_SQL2.
Step 2.
Write Onload Computation for these two variables and set the values for these variables using the same Function Body returning SQL which you make use in graph(multi-line chart ).
Step 3.
Use the variables P25_GRAPH_SQL1 and P25_GRAPH_SQL2 in the graphs(multi-line chart).
Step 4.
Define the content in the series as(nothing else)
&P25_GRAPH_SQL1.
and for the series 2 as
&P25_GRAPH_SQL2.
Please do not include any other code with this and just make use the above code. Please note that you need to mention the "&" ampersand at the beginning and dot at the end of the variable.
Step 5.
Try running the graph(multi-line chart ) now.
Hurray!! it should show you the graph without any issues provided you have the proper SQL mentioned.
Step 6.
Then, give me a treat if it works!!
Cheers!!
Prabhakar -
Business Objects Query Builder - application server for data connections
Hi experts,
I am trying to flush out all instances where we have universes with connections pointed to the wrong application server. I was hoping to use query builder to show me the application server being used for all connections (metadata.dataconnection)
Is this possible?
Edited by: Khaled McGonnell on Nov 3, 2010 6:11 PMHi Srinivas,
I had tried SELECT * already : )
The application server is the server on which the BI system you are connecting to is located. You have to define this when you create the connection in Universe Designer.
You can see the application server for "connections if you use the following query:
select si_server from ci_systemobjects where si_kind = 'Connection'
However, these are not the connections used by universes. These connections are from logged in users. Any ideas? -
Activate the Query Builder 2.0 in the application
Hi all,
is it possible to activate the query builder inside the application?
With the custom theme.
The query builder should be accessible through a link...
Regards,Leonid,
This is not possible.
Joel -
Possible bug: Query Builder deletes comments in Worksheet?
Good morning,
with Oracle SQL Developer 3.2.20.09 with included JDK on Windows 7 32 bit, we loaded a sql file containing a query with some comments (beginning with -- or /*).
We formatted the sql code with the automatic format tool without any problem.
But when we added or modified some criteria in the Query Builder, after saving the file the comments lines in the Worksheet are gone.
Thanks for reading and best regards.
Marco - ItalyHi Marco,
Please note that SQL Developer has included a Query Builder from a third-party since the 3.0 release. I will ping the developer that acts as liaison; perhaps you will get a more definitive response. Until then, you may consider the response to one bug I logged concerning some complex SQL the Query Builder's parser did not properly handle:
Query Builder is a visual environment targeted at novice/intermediate users. There are a number of advanced and/or hard to visualize language features that are not supported.*
Perhaps the use case of opening an external SQL file (potentially large / complex / with comments) may go beyond the intended usage of interactive development for the novice/intermediate user.
Regards,
Gary
SQL Developer Team -
Possible bugs when adjusting column width in Query Builder
Good morning,
we use Oracle SQL Developer 3.2.20.09 with included JDK on Windows 7 32 bit.
When we open a sql file, in the Query Builder the criteria columns don't auto-adjust accordingly with the length of text present in the columns.
Also, if we modify or type a new criteria in a column, and immediately after drag the column header to widen the cell, the cell content is erased (if we click first in another cell the problem doesn't occur).
Thanks for reading and best regards.
Marco - ItalyHi Marco,
Please note that SQL Developer has included a Query Builder from a third-party since the 3.0 release. I will ping the developer that acts as liaison; perhaps you will get a more definitive response. I can only assume any UI bugs would have to be fixed by the third-party company at his request.
Regards,
Gary
SQL Developer Team -
Query Builder in Oracle Application Express
I am unable to get columns to show after I submitt an object and click "columns" to add for a query. I also cannot get any query at all. Any help out there?
Feel free to direct me to correct forum if necessary.Hi Latha,
I believe in APEX 4.0 you can do that.
For now you would need to write a query builder yourself... (it's just an APEX app)
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
Maybe you are looking for
-
How do I re-format thunderbolt drive used as time machine backup? Password is not working and I just need to do a new back up and am willing to reformat the drive but can't get past password dialog box.
-
How can I connect additional minitor to my 520-1070?
I would like to connect my DELL monitor (AS501) as secondary monior to my HP TouchSmart 520-1070 All-In-One PC. Is it possible at all? If so, please give me detailed instructions. Thank you in advance!
-
Hey all, looking for a little advice. My elderly mother's 350, on which I installed 10.3.9, has been running maddingly slowly. The hard drive (Quantum fireball 6.8 gig) whirs and clicks (no high-pitched whining) a lot, and the pinwheel of frustration
-
Is there a lead to connect the Ipad 4 to latest ipod
I need a lead to connect the latest ipod to latest ipad, think its ipad4 to ipod5
-
Which SharePoint Service Should I use?
Hi Everyone, I'm currently in a school organization that's in need of a collaboration tool. I've personally used SharePoint as a collaboration tool at my internship and I thought for it to be a great tool our organization could use for team collabor