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

Similar Messages

  • Query Builder within SQL Developer 2.1 versus Query Builder Version 6.0.7.1

    Dear all,
    dear Sue Harper,
    we use Oracle 10g (upgrade to 11g is planed) and used the Oracle Query Builder Version 6.0.7.1 by now unless we got to know about the SQL Developer 2.1 including the Query Builder a few weeks ago to produce our SQL statements an efficient way.
    Even tho the SQL Developer 2.1 Query Builder already has some nice features, like sorting the data fields ascending, export to excel, etc, that the Oracle Query Builder Version 6.0.7.1 did not have had, we miss some essential features, like the in-statement, define column, etc while on the other side tables are not included in SQL-code unless fields are selected or i.e. date fields cannot be queried in the where conditions.
    I read the release notes and know that the SQL Developer 2.1 Query Builder is scheduled for rewrite in the next release.
    Does it make any sense to summarized all things we noticed and get in touch with whomever it may concern?
    Btw, if it would be possible to define a location for the stored connections within the SQL Developer 2.1 it would be very helpful... When starting SQL Developer 2.1 in our Windows Vista network environment it never finds the connection settings (file) automatically and we have to re-import the connections from a pre-defined directory.
    Nevertheless, the SQL Developer 2.1 is a pretty user-friendly and most times reliable tool we are thankful for.
    Kind regards,
    Stefan Wagner
    [email protected]

    @user12092220
    Yep, I saw your post; sorry for not replying, but i thought it's pretty the same problem i have. ;)
    The missing possibility to query date-fields in the where clause is really one of a many things i miss in the SQL Dev Query Builder, i am sure you use an "in" statement as well as we do. I think going back to the manual creation of the where condition like we had in Version 6.0.7.1.0 should be okay with most users, at least additional to the current solution as long as the rest of the query can be built within the graphic user interface. Further to save and open a query in gui mode is really, really important for us. Not to mention that the boxes for the tables cannot be stretched over a certain extend and i cant separate the columns any longer :/
    Other than that, SQL Developer is a pretty nice tool in my eyes, it's free and hopefully Version 3.0 will be closer to what we would like the SQL Developer to be like.
    Stefan

  • Query Builder session settings as a solve to ORA-01843 (not a valid month)

    Hi All! I'm novice at Oracle and RDBMS, so sorry for a dummy question.
    I'm trying to make some queries to a tutorial database (10g XE) with Query Builder of Application Express 2.1000039.
    I'm requesting columns with id, date of order and status of order; in a column of ordering date as a "where" condition I've wrote:
    >= to_date('23-JUN-2006', 'DD-MON-RRRR') and got an error "ORA-01843: not a valid month".
    Then I've edited row filtering condition:
    >= to_date('23-JUN-2006', 'DD-MON-RRRR', 'NLS_DATE_LANGUAGE = american') and 've got a correct query result, BUT resulting table date format is DD-MM-RR.
    So, here is a couple of questions:
    1. Can I change a session settings (e.g. alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR') such way, to use it in Query Builder, before building an application itself and not to write 'NLS_DATE_LANGUAGE = american' every time I'm inserting data to a date datatype field?
    2. I wonder why resulting table date format is 'DD-MM-RRRR'. How can I get a data exactly in a date format 'DD-MON-RRRR', how I'm specifying in a query?
    My operating system is Windows 7 Home Basic, NLS_DATE_FORMAT is DD-MON-YYYY in 2 cases in register and respectively in environment variable.
    SQL*Plus displays all mentionted query tables correctly, corresponding to an 'ALTER SESSION ..... SETTINGS'.
    Hope to your help, guys. Thanks for answers!

    Hi,
    you can run the following query so you will see the session parameter values, and any differences with database and instance values :
    SELECT
      a1.parameter as "Parameter",
      a1.value as "Database value",
      a2.value as "Instance value",
      a3.value as "Session value"
    FROM
      nls_database_parameters a1
      LEFT JOIN nls_instance_parameters a2 ON a1.parameter = a2.parameter
      LEFT JOIN nls_session_parameters a3 ON a1.parameter = a3.parameter
    ORDER BY
      a1.parameter ASC;What are the values for NLS_DATE_LANGUAGE and NLS_DATE_FORMAT ?
    1. Can I change a session settings such way, to use it in Query Builder, before building an application itself and not to write 'NLS_DATE_LANGUAGE = american' every time I'm inserting data to a date datatype field?In the application, It depends on the Application Primary Language and Application Date Format you have set in the application globalization attributes. But you can also alter the session every time the APEX engine connects to the database, by entering some PL/SQL code in the Initialization PL/SQL Code attribute of the application (Application Builder -> Application -> Edit Security Attributes) :
    BEGIN
       EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_LANGUAGE = ''AMERICAN'' ';
    END;In all cases application level settings will only affect the application, not SQL Commands and Query Builder. I think you have to alter session manually each time for these two last tools :/

  • 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/

  • Can I programmatically copy vi within llb AND build an application?

    I previously posted the question how to programmatically work (copy, delete) on files within llbs and got two answers to use the librarian vis in vi.lib > utility > libraryn.llb
    That works really good but only till I try to build an application. The application builder seems to use the librarian vis also and complains that it cannot build an application with vis that are currently in use...
    Any idea how to solve that?
    Cheers, Daniel Troendle

    Make a copy of all the VIs used by the librarian and save them under a
    different name (making sure to link the sub-VIs to the new name of course.
    Awkward, but it should work.
    Shane
    D. Troendle schrieb in Nachricht
    <[email protected]>...
    >I previously posted the question how to programmatically work (copy,
    >delete) on files within llbs and got two answers to use the librarian
    >vis in vi.lib > utility > libraryn.llb
    >
    >That works really good but only till I try to build an application.
    >The application builder seems to use the librarian vis also and
    >complains that it cannot build an application with vis that are
    >currently in use...
    >
    >Any idea how to solve that?
    >Cheers, Daniel Troendle
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • 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?
    Bob

    HI 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

  • 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 PM

    Hi 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

  • 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

  • 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

  • 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/

  • Query Builder in Crystal Report Server 2008?

    I am running CRS2008 V1 on Windows Server 2003 as single server install. I am using IIS as the web application server. Query Builder doesn't show up as an option anywhere I can find. How do I get to Query Builder?
    How do I install Query Builder if it is not already available?
    Is Tomcat required?
    Can I continue to use IIS but have Query Builder available as well?
    Can I go ahead and install Tomcat without crashing my BOE installation and IIS?
    How do I install Tomcat on this server?

    Well I've never installed CRS 2008 so I'm not sure. If the installer allows you should be able to go to add/remnove programs and modify the install, adding tomcat/java. If that is not allowed the installer may require IIS or tomcat only and a full reinstall (I hope not).
    I work with BOE 3.1 mostly and we can add/remove it with that installer.
    Regards,
    Tim

  • Internal errors during Query Builder

    Please help me to correct a problem. Database user has a very simple cube: a measure with two dimensions. User (named "warehouse") owns it, the fact table, the dimension tables etc.; client application connects using warehouse account too.
    While QueryBuilder makes a data source, one dimension (providers) fails at the some selections; for example, selections "top 10" and "last 3" works, but selection "measure value &gt; 10000" fails; the other dimension (services) works great with all selections tried.
    "Fails" means that selection step can be selected (moved from "available" to "selected" box), but cannot be configured (edited) at any manner, both in the left and right boxes - for example, I cannot edit value "10000". This selection cannot be applied too. Visually query builder does nothing, but prints exception trace (see below).
    My configuration:
    BI Beans Diagnostics(v1.0.0.0) 04.03.04
    ===============================================================================
    JDEV_ORACLE_HOME ............................. = C:\JDeveloper
    JAVA_HOME .................................... = C:\JDeveloper\jdk
    JDeveloper version ........................... = 9.0.3.1.1107
    BI Beans version ............................. = 9.0.3.6.0
    BI Beans internal version .................... = 2.7.0.14
    Connect to database .......................... = Successful
    JDBC driver version .......................... = 9.2.0.3.0
    JDBC JAR file location ....................... = C:\JDeveloper\jdbc\lib
    Database version ............................. = 9.2.0.4.0
    OLAP Catalog version ......................... = 9.2.0.4.1
    OLAP AW Engine version ....................... = 9.2.0.4.1
    OLAP API Server version ...................... = 9.2.0.4.1
    BI Beans Catalog version ..................... = N/A; not installed in warehouse
    OLAP API JAR file version .................... = 9.2
    OLAP API JAR file location ................... = C:\JDeveloper\jdev\lib\ext
    Load OLAP API metadata ....................... = Successful
    Number of metadata folders ................... = 3
    Number of metadata measures .................. = 1
    Number of metadata dimensions ................ = 2
    Metadata output location ..................... = C:\JDeveloper\bibeans\bin\bi_metadata.txt
    Exception:
    Thu Mar 04 11:08:21 MSK 2004 In oracle.dss.queryBuilder.QueryBuilderQueryAccessUtils::getDimMembers
    Sorry, these lines are re-translated from localized version
    oracle.express.ExpressServerException Error class: OLAPI
    Server errors description:
    DPR: Unable to create server cursor, Universal at TxsOqDefinitionManagerSince9202::crtCurMgrWthInputTypes
    OES: ORA-01722: invalid number
    , Universal at TxsRdbSelectStatement:execute()
         oracle.express.idl.ExpressOlapiDataCursorModule.CursorManagerInterface oracle.express.olapi.data.full.DefinitionManagerSince9202.createCursorManagerInterface(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.SourceDefinition, oracle.olapi.data.source.Source[], long)
              DefinitionManagerSince9202.java:260
         oracle.express.olapi.data.full.ExpressSpecifiedCursorManager oracle.express.olapi.data.full.DefinitionManager.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[], long)
              DefinitionManager.java:132
         oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.createCursorManagerSince9202(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[], long)
              ExpressDataProvider.java:729
         oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.internalCreateCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[], long)
              ExpressDataProvider.java:624
         oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[])
              ExpressDataProvider.java:555
         oracle.olapi.data.source.SpecifiedCursorManager oracle.olapi.data.source.DataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification)
              DataProvider.java:269
         oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[] oracle.dss.dataSource.QueryUtilities.setUpCursors(oracle.dss.dataSource.SourceTemplate[], oracle.dss.dataSource.common.CubeCursor[], oracle.olapi.data.source.Source[], oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[], boolean, boolean, boolean, boolean)
              QueryUtilities.java:558
         oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[] oracle.dss.dataSource.QueryServer._setUpCursorsForMainQuery(oracle.dss.dataSource.SourceTemplate[], oracle.dss.dataSource.common.CubeCursor[], boolean, boolean, boolean, boolean)
              QueryServer.java:7036
         void oracle.dss.dataSource.QueryServer._getCursorForCube(oracle.dss.dataSource.common.DimTree, boolean, boolean, boolean, boolean, boolean)
              QueryServer.java:4096
         void oracle.dss.dataSource.QueryServer._createCubeAndCursor(boolean, boolean, boolean)
              QueryServer.java:4251
         void oracle.dss.dataSource.QueryServer._createCommonQuery(java.lang.String[][], java.lang.String[], oracle.dss.util.Operation, oracle.dss.dataSource.common.QueryState)
              QueryServer.java:3894
         void oracle.dss.dataSource.QueryServer._initQuery(java.lang.String[][], java.lang.String[], oracle.dss.util.Operation, oracle.dss.dataSource.common.QueryState)
              QueryServer.java:3841
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
              native code
         java.lang.Object oracle.dss.util.Operation.execute(java.lang.Object)
              Operation.java:69
         java.lang.Object oracle.dss.dataSource.OperationQueue.update()
              OperationQueue.java:68
         java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation, int)
              BaseOperationQueue.java:176
         java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation)
              BaseOperationQueue.java:146
         java.lang.Object oracle.dss.dataSource.QueryServer.queueOperation(java.lang.String, oracle.dss.util.Parameter[], boolean, oracle.dss.dataSource.common.QueryEvent, java.lang.String, oracle.dss.util.Parameter[], oracle.dss.dataSource.common.QueryState)
              QueryServer.java:7073
         void oracle.dss.dataSource.QueryServer.initQuery(java.lang.String[][], java.lang.String[])
              QueryServer.java:3803
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
              native code
         java.lang.Object oracle.dss.util.Operation.execute(java.lang.Object)
              Operation.java:69
         java.lang.Object oracle.dss.dataSource.QueryManagerServer.sendQueue(oracle.dss.dataSource.common.BaseOperationQueue)
              QueryManagerServer.java:1548
         java.lang.Object oracle.dss.dataSource.common.OperationQueue.update()
              OperationQueue.java:198
         java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation, int)
              BaseOperationQueue.java:176
         java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation)
              BaseOperationQueue.java:146
         void oracle.dss.dataSource.client.QueryClient.initQuery(java.lang.String[][], java.lang.String[])
              QueryClient.java:1581
         oracle.dss.util.DataAccess oracle.dss.dataSource.common.QueryQueryAccess$SelCursor.getDataAccess(boolean)
              QueryQueryAccess.java:1099
         oracle.dss.util.DataAccess oracle.dss.dataSource.common.QueryQueryAccess.getDataAccess(java.lang.String)
              QueryQueryAccess.java:278
         java.util.Vector oracle.dss.queryBuilder.QueryBuilderQueryAccessUtils.getDimMembers(oracle.dss.datautil.QueryAccessUtilities, java.lang.String, java.lang.String, java.util.Vector, java.lang.String)
              QueryBuilderQueryAccessUtils.java:220
         oracle.dss.datautil.DimensionMember oracle.dss.queryBuilder.QueryBuilderQueryAccessUtils.getDimMember(oracle.dss.datautil.QueryAccessUtilities, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
              QueryBuilderQueryAccessUtils.java:156
         java.util.Vector oracle.dss.queryBuilder.stepView.ConditionStepView.getQDRMemberNames(java.lang.String, oracle.dss.selection.OlapQDR)
              ConditionStepView.java:230
         void oracle.dss.queryBuilder.stepView.ConditionStepView.updateQDRControls()
              ConditionStepView.java:606
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateQDR()
              MeasConditionStepView.java:451
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
              MeasConditionStepView.java:208
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorContents()
              MeasConditionStepView.java:271
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
              MeasConditionStepView.java:161
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateControls()
              MeasConditionStepView.java:148
         void oracle.dss.queryBuilder.stepView.StepView.updateStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int)
              StepView.java:562
         javax.swing.JPanel oracle.dss.queryBuilder.stepView.StepView.getStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int, int)
              StepView.java:522
         void oracle.dss.queryBuilder.StepsPanelEditor.startEdit(java.awt.Component, java.lang.String, int, java.awt.Rectangle)
              StepsPanelEditor.java:93
         boolean oracle.dss.util.dimensionList.DimensionList.doEdit(int)
              DimensionList.java:525
         void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.startEditingNewSelection()
              StepsPanel.java:404
         void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.dimensionSelected(oracle.dss.util.dimensionList.DimensionListEvent)
              StepsPanel.java:374
         void oracle.dss.util.dimensionList.DimensionList.notifyDimensionListListener(oracle.dss.util.dimensionList.DimensionListEvent)
              DimensionList.java:2074
         void oracle.dss.util.dimensionList.DimensionList.valueChanged(javax.swing.event.ListSelectionEvent)
              DimensionList.java:1772
         void javax.swing.JList.fireSelectionValueChanged(int, int, boolean)
              JList.java:946
         void javax.swing.JList$ListSelectionHandler.valueChanged(javax.swing.event.ListSelectionEvent)
              JList.java:960
         void javax.swing.DefaultListSelectionModel.fireValueChanged(int, int, boolean)
              DefaultListSelectionModel.java:170
         void javax.swing.DefaultListSelectionModel.fireValueChanged(boolean)
              DefaultListSelectionModel.java:140
         void javax.swing.DefaultListSelectionModel.setValueIsAdjusting(boolean)
              DefaultListSelectionModel.java:507
         void javax.swing.JList.setValueIsAdjusting(boolean)
              JList.java:1261
         void javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
              BasicListUI.java:831
         void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
              AWTEventMulticaster.java:231
         void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
              AWTEventMulticaster.java:230
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
              Component.java:3715
         void oracle.dss.util.dimensionList.DragList.processMouseEvent(java.awt.event.MouseEvent)
              DragList.java:202
         void oracle.dss.util.dimensionList.DimensionList.processMouseEvent(java.awt.event.MouseEvent)
              DimensionList.java:2167
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2216
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:922
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.Dialog.show()
              Dialog.java:380
         void java.awt.Component.show(boolean)
              Component.java:946
         void java.awt.Component.setVisible(boolean)
              Component.java:903
         boolean oracle.bali.ewt.wizard.WizardDialog.runDialog()
         boolean oracle.dss.datautil.gui.DefaultBuilderDialog.runDialog()
              DefaultBuilderDialog.java:481
         boolean oracle.dss.datautil.gui.DefaultBuilderDialog.run()
              DefaultBuilderDialog.java:466
         boolean oracle.dss.queryBuilder.QueryBuilder.run()
              QueryBuilder.java:2401
         void borlas.oa.Actions.actionEditQuery.doAction()
              actionEditQuery.java:44
         boolean borlas.oa.Actions.Action.fire()
              Action.java:88
         void borlas.oa.Forms.FormModule.editQuery()
              FormModule.java:132
         void borlas.oa.Forms.FormModule.access$6000071(borlas.oa.Forms.FormModule)
              FormModule.java:42
         void borlas.oa.Forms.FormModule$1.actionPerformed(java.awt.event.ActionEvent)
              FormModule.java:113
         void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1450
         void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1504
         void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
              DefaultButtonModel.java:378
         void javax.swing.DefaultButtonModel.setPressed(boolean)
              DefaultButtonModel.java:250
         void javax.swing.AbstractButton.doClick(int)
              AbstractButton.java:279
         void javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
              BasicMenuItemUI.java:886
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
              Component.java:3715
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2216
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:922
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85
    Exception occurred during event dispatching:
    java.lang.NullPointerException
         java.util.Vector oracle.dss.queryBuilder.stepView.ConditionStepView.getQDRMemberNames(java.lang.String, oracle.dss.selection.OlapQDR)
              ConditionStepView.java:230
         void oracle.dss.queryBuilder.stepView.ConditionStepView.updateQDRControls()
              ConditionStepView.java:606
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateQDR()
              MeasConditionStepView.java:451
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
              MeasConditionStepView.java:208
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorContents()
              MeasConditionStepView.java:271
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
              MeasConditionStepView.java:161
         void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateControls()
              MeasConditionStepView.java:148
         void oracle.dss.queryBuilder.stepView.StepView.updateStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int)
              StepView.java:562
         javax.swing.JPanel oracle.dss.queryBuilder.stepView.StepView.getStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int, int)
              StepView.java:522
         void oracle.dss.queryBuilder.StepsPanelEditor.startEdit(java.awt.Component, java.lang.String, int, java.awt.Rectangle)
              StepsPanelEditor.java:93
         boolean oracle.dss.util.dimensionList.DimensionList.doEdit(int)
              DimensionList.java:525
         void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.startEditingNewSelection()
              StepsPanel.java:404
         void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.dimensionSelected(oracle.dss.util.dimensionList.DimensionListEvent)
              StepsPanel.java:374
         void oracle.dss.util.dimensionList.DimensionList.notifyDimensionListListener(oracle.dss.util.dimensionList.DimensionListEvent)
              DimensionList.java:2074
         void oracle.dss.util.dimensionList.DimensionList.valueChanged(javax.swing.event.ListSelectionEvent)
              DimensionList.java:1772
         void javax.swing.JList.fireSelectionValueChanged(int, int, boolean)
              JList.java:946
         void javax.swing.JList$ListSelectionHandler.valueChanged(javax.swing.event.ListSelectionEvent)
              JList.java:960
         void javax.swing.DefaultListSelectionModel.fireValueChanged(int, int, boolean)
              DefaultListSelectionModel.java:170
         void javax.swing.DefaultListSelectionModel.fireValueChanged(boolean)
              DefaultListSelectionModel.java:140
         void javax.swing.DefaultListSelectionModel.setValueIsAdjusting(boolean)
              DefaultListSelectionModel.java:507
         void javax.swing.JList.setValueIsAdjusting(boolean)
              JList.java:1261
         void javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
              BasicListUI.java:831
         void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
              AWTEventMulticaster.java:231
         void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
              AWTEventMulticaster.java:230
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
              Component.java:3715
         void oracle.dss.util.dimensionList.DragList.processMouseEvent(java.awt.event.MouseEvent)
              DragList.java:202
         void oracle.dss.util.dimensionList.DimensionList.processMouseEvent(java.awt.event.MouseEvent)
              DimensionList.java:2167
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2216
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:922
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.Dialog.show()
              Dialog.java:380
         void java.awt.Component.show(boolean)
              Component.java:946
         void java.awt.Component.setVisible(boolean)
              Component.java:903
         boolean oracle.bali.ewt.wizard.WizardDialog.runDialog()
         boolean oracle.dss.datautil.gui.DefaultBuilderDialog.runDialog()
              DefaultBuilderDialog.java:481
         boolean oracle.dss.datautil.gui.DefaultBuilderDialog.run()
              DefaultBuilderDialog.java:466
         boolean oracle.dss.queryBuilder.QueryBuilder.run()
              QueryBuilder.java:2401
         void borlas.oa.Actions.actionEditQuery.doAction()
              actionEditQuery.java:44
         boolean borlas.oa.Actions.Action.fire()
              Action.java:88
         void borlas.oa.Forms.FormModule.editQuery()
              FormModule.java:132
         void borlas.oa.Forms.FormModule.access$6000071(borlas.oa.Forms.FormModule)
              FormModule.java:42
         void borlas.oa.Forms.FormModule$1.actionPerformed(java.awt.event.ActionEvent)
              FormModule.java:113
         void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1450
         void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1504
         void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
              DefaultButtonModel.java:378
         void javax.swing.DefaultButtonModel.setPressed(boolean)
              DefaultButtonModel.java:250
         void javax.swing.AbstractButton.doClick(int)
              AbstractButton.java:279
         void javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
              BasicMenuItemUI.java:886
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
              Component.java:3715
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2216
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:922
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85

    Also read this great article
    http://sqlblog.com/blogs/alexander_kuznetsov/archive/2009/05/13/your-try-block-may-fail-and-your-catch-block-may-be-bypassed.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

  • Vs 2010 Query Builder

    Hi guys,
    i'm using oracle 11.2.0.3 32 bit with vs2010 sp1.
    I'm developing a windows application and i create a dataset file in order to map my db on it.
    I want to add a custom select to a table adapter a i notice a problem.
    My query is: SELECT simulatori.SEQ1.nextval FROM dual
    simulatori is an oracle db and seq1 is a sequence.
    If seq1 has a public synonym the query works, instead, if i want to specified the user also Query Builder quotes the simulatori user and the query doesn't work.
    Why?
    Edited by: user6231851 on 5-dic-2012 11.26

    user6231851 wrote:
    Hi guys,
    i'm using oracle 11.2.0.3 32 bit with vs2010 sp1.
    I'm developing a windows application and i create a dataset file in order to map my db on it.
    I want to add a custom select to a table adapter a i notice a problem.
    My query is: SELECT simulatori.SEQ1.nextval FROM dual
    simulatori is an oracle db and seq1 is a sequence.
    If seq1 has a public synonym the query works, instead, if i want to specified the user also Query Builder quotes the simulatori user and the query doesn't work.
    Why?
    Edited by: user6231851 on 5-dic-2012 11.26What's the error you are getting?
    Not sure what you mean by "quotes the simulatori user". If you mean that it adds quotations in the query, then make sure that you are providing all upper case, eg "SIMULATORI". Otherwise, the quotes may trigger case sensitivity. That's just a guess. I will need more information.

Maybe you are looking for