Bug report - Branch condition (SQL exists query)

APEX 2.2.1
See http://i13.tinypic.com/2ni8gol.jpg
The branch condition is a "Exists SQL query" with select from dual where 1=2 i.e. it is a invalid SQL query, as the screenshot shows.
But the APEX accept processing engine just ignores the syntax error and proceeds to evaluate the next branch.
Thanks

thanks, Vikas. It's interesting that if you don't have any later branches on the page that fire, you will see the condition error (along with the "no page to branch to" error).
Scott

Similar Messages

  • SQL Query (updateable report) Region - Conditionally Hide and Set Values

    SQL Query (updateable report) Region - Conditionally Hide and Set Values
    Outline of requirement :-
    Master / Detail page with Detail updated on same page using SQL Query (updateable report).
    The detail region has the following source
    SELECT item_id,
           contract_id,
           CASE WHEN hardware_id IS NOT NULL THEN
                   'HA'
                WHEN backup_dev_id IS NOT NULL THEN
                   'BD'
                WHEN hardware_os_id IS NOT NULL THEN
                   'HS'
           END item_type,
           hardware_id,
           backup_dev_id,
           hardware_os_id
    FROM   "#OWNER#".support_items
    WHERE  contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
    CREATE TABLE SUPPORT_ITEMS
      ITEM_ID         NUMBER                        NOT NULL,
      CONTRACT_ID     NUMBER                        NOT NULL,
      HARDWARE_ID     NUMBER,
      BACKUP_DEV_ID   NUMBER,
      HARDWARE_OS_ID  NUMBER
    )A check type constaint on support_items ensures that only one of the fk's is present.
          (    hardware_id    IS NOT NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NOT NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NOT NULL
          )    Hardware_Id is a FK to Hardware_Assets
    Backup_dev_id is a FK to Backup_Devices
    Hardware_os_id is a FK to Hardware_op_systems
    The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
    Display Value     Return Value
    Hardware Asset    HA
    Backup Device     BD
    Computer System   HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
    What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
    Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
    Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
    Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
    There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
    Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
    What's the best way of implementing this requirement in APEX 3.1?
    Thanks.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • Conditional SQL in Report Query

    How can I code a conditional SQL in the Report query builder
    to include a WHERE clause parameter or not, depending on the value
    of a report parameter? Basically, what I want to do is:
    select field from table where x=1
    <cfif param.a eq 1>and a=1</cfif>
    Report builder does not like this, but I can't find any help
    on how to do this.

    I don't think CFML tags may be used like that in the SQL of
    report query. But then, I'm not very much into reports. If you're
    just out to get the result, then try
    select field from table
    where
    (x=1 and #param.a# <> 1) or (x=1 and #param.a#=1 and
    a=1)

  • Report region with sql query

    Hi
    I have a report region with sql query. There are two regions in page. On top of page, user enters data and after that second region show enterd data which is report region
    based on sql query.
    Now,when this page is opned, as user had not entered any thing, report region shows "no data found" message. Is it possible to remove that message or
    may i conditionally disaply report region i.e if data is inserted then only report region is dispalyed.
    Thanks

    >
    i was trying with select count(1) in expression.
    >
    Just for your info, COUNT() (without any grouping obviously) with always return 1 row. If there are no result for the query then 1 row will be returned with a value of zero - so there are results returned.
    Secondly, why were you using COUNT(1) rather than COUNT(*)? That is is faster is a very common misconception and not true. If you need to know how many rows have been returned, use COUNT(*). If you need to take nulls into account (ie. not include them in your count) then use COUNT(column_name) and name the column that you are interested in specifically.
    Cheers
    Ben

  • Modify existing query in Discoverer Report

    Hi,
    1) I want to put an outer join to the existing discoverer work sheet query. Is there any way I could do it.
    2) I am trying to modify the query by Export and Import options in the Discoverer Desktop and I am getting the below error. All I did was added (+) in the existing query
    Error: No EUL folders based on table AR_LOOKUPS found.
    was there any thing I am missing here?
    Thank you,
    Prashanth

    There seems to be a little confusion in the details mentioned.
    First check on which folder, Business Area is the report based on. Then is that folder a Sql folder or a table/view ?
    Then in the source you may have to change the code add outer joins etc., Not in the Discoverer Report.
    From what I think is export/import does not work in this scenario.

  • Strange behavior when Popup LOVs has read-only condition and Bug Report

    Hi,
    I observed an inconsistent behavior of Popup LOVs when the read-only condition is true. In that case the defined lov query is used to map the internal value of the page item to the display value defined in the lov query.
    What is the reason for this behavior? Because if the Popup LOV is in "edit mode" the page item value is just displayed without looking up the display value. The display value is just used for the popup lov. Mapping the value is normally a behavior of the popup key lov.
    -> The result is that different values are displayed if the page item is in edit or read-only mode. That's not really the behavior someone would expect.
    BTW, there seems to be a bug with "Display Extra Values" set to "Yes" in the case read-only is true. If the lookup doesn't return a value it just displays [ ], but because the property is set to yes it should display the value. The Popup Key Lov has the same bug.
    Thanks for bringing some light into that behavior
    Patrick
    Oracle APEX Essentials: http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Patrick,
    I've added your comments to a task already in our queue to examine all item types for correct behavior in read-only mode. I've noticed the quirks with display extra values also.
    By the way, still interested in your thoughts re: Re: Bug Report: Images broke when using get_blob_file_src and not authentic .
    Scott

  • How to copy existing query report into new query report in SQ00

    Hi Experts,
    Hi Experts,
    I want to add fields "company code" "'region" to existing  query report AQZZ/SAPQUERY/FKF1============
    (list of vendor address) for this i done as following:
    1.In SQ01  go to "EDIT->other user group" and i selected user group as /SAPQUERY/FK
    2.I typed F1 in query field and click change button
    3.I clicked next screen button and entered into "change query f1: select fields screen".here i clicked "basic list" button and searched company code checkbox and saved it as result company code is appearing in the standard report"AQZZ/SAPQUERY/FKF1============"
    but unfortunately there is no region field(LFA1-REGIO) for this i think i should copy the existing  query report  into new query report(Ex:Z_LIST_OF_VEND) which should be 14 characters.please tell me briefly how to do this because this is first time i am using SQ00.
    one more issue is when i selected "edit-otheruser group" and choosing /SAPQUERY/FK  i  am getting only infoset "/SAPQUERY/FIKD" but i should need Info set: "/SAPQUERY/FIDD" please tell me how to add the previous one into user group.i think if i got /SAPQUERY/FIDD into usergroup  /SAPQUERY/FK i can add region also into Query report as i mentioned above by going SQ01 ...............................
    please help regarding this which should be very beneficiary to my carrier.
    Regards,
    naresh

    Hi Experts ,
    I solved issue by changing infoset in SQ02 by means of assigning field to field group and changed the query in SQ00.
    Regards,
    naresh.

  • Bold a single row in a Report based on SQL Query

    Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?

    One way to do this is to add a hidden column to your report which contains the formatting value, for example:
    select empno
    , ename
    , sal
    , decode(empno,1,'font-weight:bold','font-weight:normal') style
    from emp
    Hide the STYLE column.
    Then you can use this column for each column in Column Formatting > HTML expression in this way:
    <span style="#STYLE#">#SAL#</span>
    Unfortunately you have to do this for each colum you want to appear bold.
    good luck,
    Dirk Dral

  • Export to Excel from Report region (pl/sql returning sql query)

    Hello all,
    I have encountered an interesting problem. I have an HTMLDB application with a lot of sql reports coded straight inside the report region. In order to better organize my reports, I decided to
    1. make all my report regions of type "Pl/Sql function returning SQL query"
    2. create a package inside my database schema which houses all reports as pl/sql functions returning VARCHAR2, the string returned being the report query
    3. just calling "return package_name.function_name" from inside my report region of type "Pl/sql function returning SQL query".
    This technique seemed to work perfectly. The reports were being returned as expected. I was then asked to provide the "Export to Excel" capability to all my reports. This seemed like a piece of cake using HTML DB's "Export to Excel" extension. However, the "export to excel" does not function correctly when my reports are inside a package in the database. HTML DB tries to export but inside the excel spreadsheet, instead of seeing row data, I see:
    <pre>failed to parse SQL query:
    ORA-00936: missing expression
    <!-- select a.username, b.table_name, 'View Row Data' from schema_browser_user_list a, all_tables b where a.user_id = and a.username = b.owner order by b.table_name asc
    --!>
    </pre>
    I am building my query string inside of my package functions by using a combination of literal strings and concatenating them with some parameter values being passed in. It seems that the HTML DB engine which exports the report to excel does not properly understand the concatenation of variables as can be seen by the empty space to the right of the equal sign in the "a.user_id = " clause. Does anybody have any input as to whether this is a known issue or if I am doing something wrong? Thanks a lot for your time.
    - Kenny R.

    James,
    Thanks for the quick reply. I think you mis-understood what I'm doing. All I'm doing is creating packaged functions which return VARCHAR2. The VARCHAR2 that they return is the report query. With this technique, I no longer have to type the query into the HTML DB report region. Instead, I make the report region a "Pl/sql function returning sql query" and make the following call: return package_name.function_name(some_application_items passed in as parameters)
    This makes for a much more organized html db app. The problem is that the "export to excel" function does not correctly interpret the VARCHAR2 that my packaged functions are returning. Is this a better explanation? Thanks again for your time.
    - Kenny R.

  • BUG REPORT: new 10g Driver throws SQLExcpetion

    So far, i just replaced my old ORACLE JDBC driver jar file with a new version. Of course, i use the classes12.jar to be used by JDK 1.3. This worked for all the 9.xxx Drivers. Now, i tried to use the classes12.jar from the new "10g" Driver (10.1.0.2.0) but it doesn't work anymore. The first simple SELECT statement throws this error:
    java.sql.SQLException: Typlänge größer als Höchstwert
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
         at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:884)
         at oracle.jdbc.driver.T4CMAREngine.buffer2Value(T4CMAREngine.java:2230)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB2(T4CMAREngine.java:1047)
         at oracle.jdbc.driver.T4CTTIdcb.receiveCommon(T4CTTIdcb.java:111)
         at oracle.jdbc.driver.T4CTTIdcb.receive(T4CTTIdcb.java:94)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:590)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:111)
         at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:350)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:895)
         at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:382)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:985)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1124)
    For the simple select statement:
    select REF_CLASS, REF_CODE, REF_TEXT_DE from refset order by REF_CLASS,REF_CODE
    so, nothing special. Going back to the last 9.x driver, it works again. Is the 10g driver knwon to be buggy?
    Is there an official bug report web page on the ORACLE site (similar to the sun Java bug database)?

    Hi all,
    I am seeing following exception while using Oracle 10.2.0.3 base release with WebSphere 6.1.0.9.
    ------Start of DE processing------ = [2/3/08 12:59:14:698 CST] , key = java.sql.SQLException com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.pmiExecuteQuery 1315
    Exception = java.sql.SQLException
    Source = com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.pmiExecuteQuery
    probeid = 1315
    Stack Dump = java.sql.SQLException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:801)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:841)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1274)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.pmiExecuteQuery(WSJdbcStatement.java:1381)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.executeQuery(WSJdbcStatement.java:754)
         at com.filenet.engine.dbpersist.DBContext.determineDatabaseType(DBContext.java:418)
         at com.filenet.engine.context.ServerCallContext._getDBContext(ServerCallContext.java:611)
         at com.filenet.engine.context.ServerCallContext.getDBContextFromJNDIValues(ServerCallContext.java:783)
         at com.filenet.engine.dbpersist.DBContext.determineDatabaseType(DBContext.java:380)
         at com.filenet.engine.gcd.GCDDBPersistence.<init>(GCDDBPersistence.java:135)
         at com.filenet.engine.gcd.GCDPersistence.getGCDPersistence(GCDPersistence.java:171)
         at com.filenet.engine.gcd.GCD.initialize(GCD.java:226)
         at com.filenet.engine.gcd.GCD.domainAvailable(GCD.java:183)
         at com.filenet.engine.gcd.GCD.isDomainAvailable(GCD.java:119)
         at com.filenet.engine.gcd.GCD.getContextInfo(GCD.java:142)
         at com.filenet.engine.init.StartupUtility.start(StartupUtility.java:136)
         at com.filenet.engine.init.StartupUtility.access$000(StartupUtility.java:39)
         at com.filenet.engine.init.StartupUtility$1.run(StartupUtility.java:68)
         at java.security.AccessController.doPrivileged(AccessController.java:274)
         at javax.security.auth.Subject.doAs(Subject.java:573)
         at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:168)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at com.filenet.apiimpl.util.J2EEUtilWS.doAs(J2EEUtilWS.java:207)
         at com.filenet.engine.context.CallState.doAsSystem(CallState.java:385)
         at com.filenet.engine.init.StartupUtility.startASSystem(StartupUtility.java:63)
         at com.filenet.engine.jca.impl.ConnectionFactoryImpl.start(ConnectionFactoryImpl.java:120)
         at engine.EngineInit._init(EngineInit.java:60)
         at engine.EngineInit.init(EngineInit.java:132)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1142)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:150)
         at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
         at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:787)
         at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:467)
         at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:304)
         at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:285)
         at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
         at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
         at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
         at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)
         at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
         at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
         at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:341)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    Dump of callerThis =
    Object type = com.ibm.ws.rsadapter.jdbc.WSJdbcStatement
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.jdbc.WSJdbcStatement@53385338
    Displaying FFDC information for wrapper hierarchy,
    beginning from the Connection...
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.jdbc.WSJdbcConnection@7c9e7c9e
    com.ibm.ws.rsadapter.jdbc.WSJdbcConnection@7c9e7c9e
    Transaction Manager global transaction status is
    STATUS NO TRANSACTION (6)
    Underlying Connection: oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    Key Object:
    [B@14f414f4
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    Connection Manager:
    [ConnectionManager]@4ee24ee2
    JNDI Name <FNGCDDS>
    shareable <true>
    ConnectionManager supports lazy association?
    true
    ConnectionManager supports lazy enlistment?
    true
    Handle is reserved? false
    AutoCommit value tracked by handle: true
    Detection of multithreaded access is:
    DISABLED
    Thread id:
    null
    Wrapper State:
    ACTIVE
    Parent wrapper:
    null
    Child wrapper:
    null
    # of Child Wrappers 1
    Child wrappers:
    com.ibm.ws.rsadapter.jdbc.WSJdbcStatement@53385338
    ConnectionRequestInfo:
    null
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl@63666366
    Detection of multithreaded access is
    DISABLED
    Resource Adapter:
    null
    Hash Code:
    -1131425938 (0xbc8fcf6e)
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    Database Type:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    Description:
    null
    InternalDataStoreHelper:
    [email protected]8
    Log Writer:
    null
    Performance Monitoring Instrumentation:
    com.ibm.ws.pmi.server.modules.J2CModule@46cc46cc
    Statement Cache Size (maximum):
    10
    Transaction Branches are set to be Loosely Coupled:
    false
    Counter of fatal connection errors on ManagedConnections created by this MCF:
    0
    Validate existing connections on cleanup after a fatal connection error is detected?
    true
    ResetConnectionByBackendDatabase:
    false
    Backend id checking is:
    true
    JMSOnePhaseOptimization:
    false
    Reauthentication:
    false
    newDBConnectionValidationEnabled:
    false
    connectionRetriesDuringDBFailover:
    100
    connRetryDurationDuringDBFailover:
    3000
    Connection Factory Type:
    com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource
    Listing PropertyChangeListeners:
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbDataSource@34003400
    DataSource Implementation Class Name:
    oracle.jdbc.pool.OracleConnectionPoolDataSource
    DataSource Name:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    ONE PHASE ENABLED
    Underlying DataSource Object: oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    Counter of unique, modified DataSource configurations: 0
    DynamicDSConfigManager
    null
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl@3f023f02
    ONE PHASE ENABLED
    Database Type:
    null
    Transaction State:
    NO_TRANSACTION_ACTIVE
    Statement Cache Size (maximum):
    10
    Key:
    [B@14f414f4
    Performance Monitoring Instrumentation:
    com.ibm.ws.pmi.server.modules.J2CModule@46cc46cc
    Log Writer:
    null
    Subject:
    null
    ManagedConnection:
    WSRdbManagedConnectionImpl@3f023f02
    Counter of fatal connection errors for the ManagedConnectionFactory as of the most recent getConnection on this ManagedConnection:
    0
    Default AutoCommit:
    true
    Current AutoCommit:
    true
    AutoCommit reported by the JDBC driver:
    true
    Current Isolation:
    READ COMMITTED (2)
    Isolation level has changed? :
    false
    Support isolation level switching:
    false
    Isolation reported by the JDBC driver:
    READ COMMITTED (2)
    Catalog, IsReadOnly, or TypeMap has changed? :
    false
    Default Holdability:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Current Holdability:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Holdability value has changed? :
    false
    Holdability reported by the JDBC driver:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Thread ID:
    null
    Lazily enlisted in the current transaction? :
    false
    Underlying Connection Object: oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    Underlying PooledConnection Object: oracle.jdbc.pool.OraclePooledConnection@64ec64ec
    oracle.jdbc.pool.OraclePooledConnection@64ec64ec
    SQLJ Default Context: null
    null
    Is statement caching enabled? :
    true
    Fatal connection error was detected? :
    false
    Currently cleaning up handles? :
    false
    Last ConnectionEvent sent for this ManagedConnection:
    com.ibm.ws.rsadapter.spi.WSConnectionEvent@3f583f58
    Connection Handle: null
    Event ID: UNKNOWN CONNECTION EVENT CONSTANT (0)
    Exception: null
    Driver version:
    10.2.0.3.0
    Database version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Connection Event Listeners:
    com.ibm.ejs.j2c.ConnectionEventListener@6f306f30
    Interaction Metrics:
    com.ibm.ejs.j2c.ConnectionEventListener@6f306f30
    Maximum Handle List Size: 15
    Handle Count: 1
    Handles:
    com.ibm.ws.rsadapter.jdbc.WSJdbcConnection@7c9e7c9e
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    State Manager:
    com.ibm.ws.rsadapter.spi.WSStateManager@6ec46ec4
    XA Resource:
    null
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbSpiLocalTransactionImpl@7c827c82
    Connection:
    oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    ManagedConnection:
    WSRdbManagedConnectionImpl@3f023f02
    Detection of multithreaded access is:
    DISABLED
    ManagedConnectionMetaData:
    null
    Statement Cache:
    com.ibm.ws.rsadapter.spi.CacheMap@6d486d48
    Number of entries: 0
    Maximum entries: 10
    Number of buckets: 13
    Maximum bucket size: 5
    Number of discards: 0
    BUCKET SIZE PREV NEXT
    000 000 013 013
    001 000 013 013
    002 000 013 013
    003 000 013 013
    004 000 013 013
    005 000 013 013
    006 000 013 013
    007 000 013 013
    008 000 013 013
    009 000 013 013
    010 000 013 013
    011 000 013 013
    012 000 013 013
    013 LRU 014
    014 MRU 013
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSConnectionRequestInfoImpl@345e345e
    extention DS properties =
    null
    extention DS properties key =
    0
    useHetrogeneous =
    false
    changable CRI =
    false
    optimizeForGetUseCloseUsage =
    false
    User Name:
    null
    Password:
    null
    Isolation Level:
    READ COMMITTED (2)
    Catalog:
    null
    Is Read Only?
    null
    Type Map:
    null
    Cursor Holdability:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Config ID: 0
    Hash Code:
    0
    Support isolation switching on connection:
    false
    NoEnlistment:
    false
    ShareWithCMPOnly:
    false
    Handle type:
    java.sql.Connection
    TrustedContext_name:
    null
    TrustedContext_realm:
    null
    TrustedContext_userSecToken:
    null
    TrustedContext_originalUser:
    null
    trustedContextIdentityAttributesAreSet =
    false
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl@63666366
    Detection of multithreaded access is
    DISABLED
    Resource Adapter:
    null
    Hash Code:
    -1131425938 (0xbc8fcf6e)
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    Database Type:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    Description:
    null
    InternalDataStoreHelper:
    [email protected]8
    Log Writer:
    null
    Performance Monitoring Instrumentation:
    com.ibm.ws.pmi.server.modules.J2CModule@46cc46cc
    Statement Cache Size (maximum):
    10
    Transaction Branches are set to be Loosely Coupled:
    false
    Counter of fatal connection errors on ManagedConnections created by this MCF:
    0
    Validate existing connections on cleanup after a fatal connection error is detected?
    true
    ResetConnectionByBackendDatabase:
    false
    Backend id checking is:
    true
    JMSOnePhaseOptimization:
    false
    Reauthentication:
    false
    newDBConnectionValidationEnabled:
    false
    connectionRetriesDuringDBFailover:
    100
    connRetryDurationDuringDBFailover:
    3000
    Connection Factory Type:
    com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource
    Listing PropertyChangeListeners:
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbDataSource@34003400
    DataSource Implementation Class Name:
    oracle.jdbc.pool.OracleConnectionPoolDataSource
    DataSource Name:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    ONE PHASE ENABLED
    Underlying DataSource Object: oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    Counter of unique, modified DataSource configurations: 0
    DynamicDSConfigManager
    null
    ==> Performing default dump from com.ibm.ws.rsadapter.DiagnosticModuleForAdapter = Sun Feb 03 12:59:15 CST 2008
    This is a FFDC log generated for the Default Resource Adapter from source = com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.pmiExecuteQuery
    The exception caught = java.sql.SQLException: ORA-00942: table or view does not exist
    SQL Error Code is 942 SQL State is = 42000
    Operating System = Windows Server 2003 5.2 build 3790 Service Pack 2 x86
    Classpath = C:\Program Files\IBM\WebSphere\AppServ\profiles\AppSrv02/properties;C:/Program Files/IBM/WebSphere/AppServ/properties;C:/Program Files/IBM/WebSphere/AppServ/lib/startup.jar;C:/Program Files/IBM/WebSphere/AppServ/lib/bootstrap.jar;C:/Program Files/IBM/WebSphere/AppServ/lib/j2ee.jar;C:/Program Files/IBM/WebSphere/AppServ/lib/lmproxy.jar;C:/Program Files/IBM/WebSphere/AppServ/lib/urlprotocols.jar;C:/Program Files/IBM/WebSphere/AppServ/deploytool/itp/batchboot.jar;C:/Program Files/IBM/WebSphere/AppServ/deploytool/itp/batch2.jar;C:/Program Files/IBM/WebSphere/AppServ/java/lib/tools.jar
    Ext dirs = C:\Program Files\IBM\WebSphere\AppServ\java\jre\lib\ext
    Other related data. If null, nothing was passed in =
    null
    The Objects' instance variables are printed below recursively 2 levels deep =
    Object type = com.ibm.ws.rsadapter.jdbc.WSJdbcStatement
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.jdbc.WSJdbcStatement@53385338
    Displaying FFDC information for wrapper hierarchy,
    beginning from the Connection...
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.jdbc.WSJdbcConnection@7c9e7c9e
    com.ibm.ws.rsadapter.jdbc.WSJdbcConnection@7c9e7c9e
    Transaction Manager global transaction status is
    STATUS NO TRANSACTION (6)
    Underlying Connection: oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    Key Object:
    [B@14f414f4
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    Connection Manager:
    [ConnectionManager]@4ee24ee2
    JNDI Name <FNGCDDS>
    shareable <true>
    ConnectionManager supports lazy association?
    true
    ConnectionManager supports lazy enlistment?
    true
    Handle is reserved? false
    AutoCommit value tracked by handle: true
    Detection of multithreaded access is:
    DISABLED
    Thread id:
    null
    Wrapper State:
    ACTIVE
    Parent wrapper:
    null
    Child wrapper:
    null
    # of Child Wrappers 1
    Child wrappers:
    com.ibm.ws.rsadapter.jdbc.WSJdbcStatement@53385338
    ConnectionRequestInfo:
    null
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl@63666366
    Detection of multithreaded access is
    DISABLED
    Resource Adapter:
    null
    Hash Code:
    -1131425938 (0xbc8fcf6e)
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    Database Type:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    Description:
    null
    InternalDataStoreHelper:
    [email protected]8
    Log Writer:
    null
    Performance Monitoring Instrumentation:
    com.ibm.ws.pmi.server.modules.J2CModule@46cc46cc
    Statement Cache Size (maximum):
    10
    Transaction Branches are set to be Loosely Coupled:
    false
    Counter of fatal connection errors on ManagedConnections created by this MCF:
    0
    Validate existing connections on cleanup after a fatal connection error is detected?
    true
    ResetConnectionByBackendDatabase:
    false
    Backend id checking is:
    true
    JMSOnePhaseOptimization:
    false
    Reauthentication:
    false
    newDBConnectionValidationEnabled:
    false
    connectionRetriesDuringDBFailover:
    100
    connRetryDurationDuringDBFailover:
    3000
    Connection Factory Type:
    com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource
    Listing PropertyChangeListeners:
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbDataSource@34003400
    DataSource Implementation Class Name:
    oracle.jdbc.pool.OracleConnectionPoolDataSource
    DataSource Name:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    ONE PHASE ENABLED
    Underlying DataSource Object: oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    Counter of unique, modified DataSource configurations: 0
    DynamicDSConfigManager
    null
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl@3f023f02
    ONE PHASE ENABLED
    Database Type:
    null
    Transaction State:
    NO_TRANSACTION_ACTIVE
    Statement Cache Size (maximum):
    10
    Key:
    [B@14f414f4
    Performance Monitoring Instrumentation:
    com.ibm.ws.pmi.server.modules.J2CModule@46cc46cc
    Log Writer:
    null
    Subject:
    null
    ManagedConnection:
    WSRdbManagedConnectionImpl@3f023f02
    Counter of fatal connection errors for the ManagedConnectionFactory as of the most recent getConnection on this ManagedConnection:
    0
    Default AutoCommit:
    true
    Current AutoCommit:
    true
    AutoCommit reported by the JDBC driver:
    true
    Current Isolation:
    READ COMMITTED (2)
    Isolation level has changed? :
    false
    Support isolation level switching:
    false
    Isolation reported by the JDBC driver:
    READ COMMITTED (2)
    Catalog, IsReadOnly, or TypeMap has changed? :
    false
    Default Holdability:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Current Holdability:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Holdability value has changed? :
    false
    Holdability reported by the JDBC driver:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Thread ID:
    null
    Lazily enlisted in the current transaction? :
    false
    Underlying Connection Object: oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    Underlying PooledConnection Object: oracle.jdbc.pool.OraclePooledConnection@64ec64ec
    oracle.jdbc.pool.OraclePooledConnection@64ec64ec
    SQLJ Default Context: null
    null
    Is statement caching enabled? :
    true
    Fatal connection error was detected? :
    false
    Currently cleaning up handles? :
    false
    Last ConnectionEvent sent for this ManagedConnection:
    com.ibm.ws.rsadapter.spi.WSConnectionEvent@3f583f58
    Connection Handle: null
    Event ID: UNKNOWN CONNECTION EVENT CONSTANT (0)
    Exception: null
    Driver version:
    10.2.0.3.0
    Database version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Connection Event Listeners:
    com.ibm.ejs.j2c.ConnectionEventListener@6f306f30
    Interaction Metrics:
    com.ibm.ejs.j2c.ConnectionEventListener@6f306f30
    Maximum Handle List Size: 15
    Handle Count: 1
    Handles:
    com.ibm.ws.rsadapter.jdbc.WSJdbcConnection@7c9e7c9e
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    State Manager:
    com.ibm.ws.rsadapter.spi.WSStateManager@6ec46ec4
    XA Resource:
    null
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbSpiLocalTransactionImpl@7c827c82
    Connection:
    oracle.jdbc.driver.LogicalConnection@3dfc3dfc
    ManagedConnection:
    WSRdbManagedConnectionImpl@3f023f02
    Detection of multithreaded access is:
    DISABLED
    ManagedConnectionMetaData:
    null
    Statement Cache:
    com.ibm.ws.rsadapter.spi.CacheMap@6d486d48
    Number of entries: 0
    Maximum entries: 10
    Number of buckets: 13
    Maximum bucket size: 5
    Number of discards: 0
    BUCKET SIZE PREV NEXT
    000 000 013 013
    001 000 013 013
    002 000 013 013
    003 000 013 013
    004 000 013 013
    005 000 013 013
    006 000 013 013
    007 000 013 013
    008 000 013 013
    009 000 013 013
    010 000 013 013
    011 000 013 013
    012 000 013 013
    013 LRU 014
    014 MRU 013
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSConnectionRequestInfoImpl@345e345e
    extention DS properties =
    null
    extention DS properties key =
    0
    useHetrogeneous =
    false
    changable CRI =
    false
    optimizeForGetUseCloseUsage =
    false
    User Name:
    null
    Password:
    null
    Isolation Level:
    READ COMMITTED (2)
    Catalog:
    null
    Is Read Only?
    null
    Type Map:
    null
    Cursor Holdability:
    DEFAULT CURSOR HOLDABILITY VALUE (0)
    Config ID: 0
    Hash Code:
    0
    Support isolation switching on connection:
    false
    NoEnlistment:
    false
    ShareWithCMPOnly:
    false
    Handle type:
    java.sql.Connection
    TrustedContext_name:
    null
    TrustedContext_realm:
    null
    TrustedContext_userSecToken:
    null
    TrustedContext_originalUser:
    null
    trustedContextIdentityAttributesAreSet =
    false
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl@63666366
    Detection of multithreaded access is
    DISABLED
    Resource Adapter:
    null
    Hash Code:
    -1131425938 (0xbc8fcf6e)
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    Database Type:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    Description:
    null
    InternalDataStoreHelper:
    [email protected]8
    Log Writer:
    null
    Performance Monitoring Instrumentation:
    com.ibm.ws.pmi.server.modules.J2CModule@46cc46cc
    Statement Cache Size (maximum):
    10
    Transaction Branches are set to be Loosely Coupled:
    false
    Counter of fatal connection errors on ManagedConnections created by this MCF:
    0
    Validate existing connections on cleanup after a fatal connection error is detected?
    true
    ResetConnectionByBackendDatabase:
    false
    Backend id checking is:
    true
    JMSOnePhaseOptimization:
    false
    Reauthentication:
    false
    newDBConnectionValidationEnabled:
    false
    connectionRetriesDuringDBFailover:
    100
    connRetryDurationDuringDBFailover:
    3000
    Connection Factory Type:
    com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource
    Listing PropertyChangeListeners:
    First Failure Data Capture information for
    com.ibm.ws.rsadapter.spi.WSRdbDataSource@34003400
    DataSource Implementation Class Name:
    oracle.jdbc.pool.OracleConnectionPoolDataSource
    DataSource Name:
    null
    DataStoreHelper:
    com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper@3ebc3ebc
    DataSource properties:
    {enable2Phase=false, serverName=localhost, statementCacheSize=10, user=gcduser, dataStoreHelperClass=com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper, URL=jdbc:oracle:thin:@localhost:1521:orcl, databaseName=orcl, selectMethod=direct, dataSourceClass=oracle.jdbc.pool.OracleConnectionPoolDataSource, password=******, portNumber=1521}
    ONE PHASE ENABLED
    Underlying DataSource Object: oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    oracle.jdbc.pool.OracleConnectionPoolDataSource@39703970
    Counter of unique, modified DataSource configurations: 0
    DynamicDSConfigManager
    null
    +Data for directive [defaultadapter] obtained. =
    ==> Dump complete for com.ibm.ws.rsadapter.DiagnosticModuleForAdapter = Sun Feb 03 12:59:15 CST 2008
    Any Ideas?
    Thanks in advance.
    Regards,
    Rajan

  • List - SQL Exists - Grid Edit

    I changed the display sequence on one of my master lists using the Grid Edit functionality. All of these have a SQL Exists condition to determine if it is Current for Pages. Before changing the displaying sequence, I added a new List Item.
    When I ran the page, I received an ORA-00923: FROM keyword not found where expected. So I reviewed my new List Item. Everything appeared to be normal, but the SQL in the SQL Exists-Current for Pages text area was all on one line.
    I entered it like this:
    SELECT NULL
    FROM vw_pages
    WHERE pagegroupcode = 'PR' and it became
    SELECT NULLFROM vw_pagesWHERE pagegroupcode = 'PR'(note the lack of spaces)
    This was the same for about 75% of the other items with similar conditions. I had to manually change the SQL in for each List Item.
    I confirmed the same behavior on the public site at: http://apex.oracle.com/pls/otn/f?p=30083:1
    I was unable to find any discussions pertaining to the subject so I am posting it here.
    APEX: 2.2.1.00.04
    chet

    Chet - Thanks for the report. Looks like a bug, that tabular form column is set to Text instead of Textarea and all the hard returns are getting lost.
    Scott

  • Application Report Missing PL/SQL Functional Area

    All,
    I just wanted to bring to the ApEx developers something I just noticed... I use the Shared Components > Database Object Dependencies report to make sure all is well before moving applications into production.
    The Parsing Errors feature of that report is WONDERFUL! But it seems to be overlooking buttons that use a conditional display based on PL/SQL Function Body Returning a Boolean.
    Dan

    Hi Dan,
    I think the place is perfect, but I read once somewhere that "Bug" or "Bug Report" should be in the subject so that's easier to find for the Oracle guys.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Report Based on SQL view not pulling in all parameters

    Post Author: ronhawker
    CA Forum: .NET
    I based a report on a SQL view below:SELECT     TOP (100) PERCENT CorpDirectory.Position, CorpDirectory.PhoneDirect, CorpDirectory.Email, CorpDirectory.Store, CorpDirectory.Name,                       CorpDirectory.PhoneFaxWave, CorpDirectory.Department, Store.StoreName, Store.StoreStreetAddress, Store.StoreCity, Store.StoreState,                       Store.StoreZip, Store.StorePhone, CorpDirectory.DisplayOrderFROM         dbo.CorpDirectory AS CorpDirectory INNER JOIN                      dbo.Store AS Store ON CorpDirectory.Store = Store.StoreORDER BY CorpDirectory.Store, CorpDirectory.Department, CorpDirectory.DisplayOrder, CorpDirectory.Name When the report was created the order by sequence only brought in the first parameter of CorpDirectory.Store. It seemed to ignore the other three order by parameters. I am running 10.2 is VS2005.

    Sharmila,
    Thanks for your response. Maybe I wasn't clear enough in my previous statement. I will give an example of what I am trying to accomplish.
    Let's say I have 2 date fields(SUBMITDATE,COMPLETEDATE) in a table TABLE A
    I want to calculate a field called CYCLETIME with the following conditions:
    If COMPLTEDATE is NULL, then CYCLETIME = SYSDATE-SUBMITDATE
    IF COMPLTEEDATE is not null, then CYCLETIME = COMPLTEEDATE-SUBMITDATE
    Would appreciate any help.
    Thanks
    Dev
    Hi,
    You can do the calculation in the sql query itself. Here is an example which shows the sum of salaray for each department in the scott.emp table.
    select deptno,sum(sal) sal
    from scott.emp
    group by deptno
    Thanks,
    Sharmila

  • Create a report with PL/SQL

    Hi,
    I have two pages: the first page contains two text fields and a submit button. In the first text field you can enter a name and in the second field you can enter a number. That means you can search a record by name or by number.
    In the second page the report is generated depending on the used text field of the first page.
    I tried to to define a region source code with PL/SQL for the report, but nothing appears on the report page although the record I was looking for exists in the database.
    begin
    if :ENTERNAME IS NOT NULL then
    FOR item IN (select "TB_PERSON_INSTITUTION"."PI_ID" as "PI_ID",
    "TB_PERSON_INSTITUTION"."PI_NAME" as "PI_NAME",
    "TB_PERSON_INSTITUTION"."PI_VORNAME" as "PI_VORNAME",
    from     "TB_PERSON_INSTITUTION" "TB_PERSON_INSTITUTION"
    where      upper("TB_PERSON_INSTITUTION"."PI_NAME") like upper(:ENTERNAME||'%'))
    loop
    DBMS_OUTPUT.PUT_LINE('First name = ' || item.PI_NAME ||
    ', Last name = ' || item.PI_VORNAME);
    end loop;
    end if;
    end;
    Regards
    Mark

    Hi,
    ok thanks. I tried to use the SQL-Report with type "SQL Query (PL/SQL function body returning SQL-Query)" and made a few changes in the SQL-Statement so that a second table is also included:
    declare My_select varchar2(500);
    begin
    if :TEXTEINGABENAME IS NOT NULL then
    My_select:='SELECT
    "TB_ADRESSE"."A_PLZ" "A_PLZ",
    "TB_ADRESSE"."A_ORT" "A_ORT",
    "TB_ADRESSE"."A_ID" "A_ID",
    "TB_PERSON_INSTITUTION"."PI_MITGLIEDSNUMMER" "PI_MITGLIEDSNUMMER",
    "TB_PERSON_INSTITUTION"."PI_NAME" "PI_NAME",
    "TB_PERSON_INSTITUTION"."PI_VORNAME" "PI_VORNAME",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG" "PI_ERGAENZUNG",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG1" "PI_ERGAENZUNG1",
    "TB_PERSON_INSTITUTION"."PI_ID" "PI_ID"
    FROM
    "TB_ADRESSE" "TB_ADRESSE",
    "TB_PERSON_INSTITUTION" "TB_PERSON_INSTITUTION"
    WHERE "TB_PERSON_INSTITUTION"."PI_ID" = "TB_ADRESSE"."A_F_PERSON_INSTITUTION"
    AND upper("TB_PERSON_INSTITUTION"."PI_NAME") like upper(:TEXTEINGABENAME||"%")';
    else
    if :TEXTMITGLIEDSNUMMER is not null then
    My_select:='SELECT
    "TB_ADRESSE"."A_PLZ" "A_PLZ",
    "TB_ADRESSE"."A_ORT" "A_ORT",
    "TB_ADRESSE"."A_ID" "A_ID",
    "TB_PERSON_INSTITUTION"."PI_MITGLIEDSNUMMER" "PI_MITGLIEDSNUMMER",
    "TB_PERSON_INSTITUTION"."PI_NAME" "PI_NAME",
    "TB_PERSON_INSTITUTION"."PI_VORNAME" "PI_VORNAME",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG" "PI_ERGAENZUNG",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG1" "PI_ERGAENZUNG1",
    "TB_PERSON_INSTITUTION"."PI_ID" "PI_ID"
    FROM
    "TB_ADRESSE" "TB_ADRESSE",
    "TB_PERSON_INSTITUTION" "TB_PERSON_INSTITUTION"
    WHERE "TB_PERSON_INSTITUTION"."PI_ID" = "TB_ADRESSE"."A_F_PERSON_INSTITUTION"
    AND upper("TB_PERSON_INSTITUTION"."PI_MITGLIEDSNUMMER") like upper(:TEXTMITGLIEDSNUMMER||"%")';
    end if;
    end if;
    return My_select;
    end;
    When I try to apply changes an error message occurs:
    "Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. The query can not be parsed, the cursor is not yet open or a function returning a SQL query returned without a value."
    Regards,
    Mark

  • Using SQL in Query in 3.0.0

    I'm very happy to see this feature added to 3.0.0 along with methodQL. This
    should alleviate a lot of the issues with trying to use only JDOQL,
    especially when the desired SQL statemetn is well understood. Thanks for
    adding this!
    Ben

    Marc,
    Calling pm.flush() explicitly doesn't help. Calling
    query.setIgnoreCache(true) does work, so that's good.
    I even get the correct number of rows back in the Collection. Unfortunately
    every item in the Collection is null. I definitely did a
    query.setClass(DSChannelValueImpl.class) and it is enhanced properly,
    because that's how the table got populated earlier in the test. I am doing a
    SELECT *, so the class indicator and pk should be there. I'm assuming it
    doesn't mind me aliasing the FROM table name, since I need to disambiguate
    it to do a join (below).
    Ben
    "Marc Prud'hommeaux" <[email protected]> wrote in message
    news:[email protected]...
    Ben-
    I've made a bug report for this:
    http://bugzilla.solarmetric.com/show_bug.cgi?id=780
    In the meantime, a nicer workaround will probably be to just call
    setIgnoreCache(true) on the Query.
    In article <[email protected]>, Marc Prud'hommeaux wrote:
    Ben-
    A potential (but, admittedly, not very nice) workaround for this for the
    time being might be to enable NonTransactionalRead=true, and ensure that
    there is not a transaction running at the time of query execution.
    In article <[email protected]>, Patrick Linskey wrote:
    Well, sounds like a bug. We'll take a look. Sorry about that.
    What happens if you explicitly flush the PM before execution?
    -Patrick
    Ben Eng wrote:
    Query query = pm.newQuery( "kodo.jdbc.SQL", null );
    query.setClass( ChannelValue.class );
    query.declareParameters( "VARCHAR pConn, DATETIME pStart,
    DATETIME pEnd" );
    String filter = "select * from dschannel as c" +
    " left join channelsegment as s" +
    " on c.pk = s.channel and" +
    " c.supporting = pConn and" +
    " (s.validForEnd > pStart or" +
    " s.validForStart < pEnd)" +
    " where s.channel is null";
    query.setFilter( filter );
    Collection resultSet = (Collection) this.query.execute(
    connection, start, end );
    This is being called from a method of a stateless session bean that is
    only
    performing this query. CMT, Required, and the client is not definingits own
    transaction boundaries. Therefore, I would not expect anything to bedirtied
    in this transaction. This is with the BEA WLS 7.0 appserver.
    Ben
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]...
    Ben,
    Can you post the code that you're using to create the query?
    -Patrick
    Ben Eng wrote:
    I just ran into a snag with this feature.
    kodo.util.UnsupportedOptionException: kodo.jdbc.SQL language queries
    cannot
    be executed in-memory. Either set the javax.jdo.option.IgnoreCacheproperty
    to true, set the kodo.FlushBeforeQueries property to true, or executethe
    query before modifying objects within the transaction.
    at
    kodo.jdbc.query.SQLQuery.newInMemoryQueryExecutor(SQLQuery.java:117)
    at kodo.query.AbstractQuery.internalCompile(AbstractQuery.java:545)
    atkodo.query.AbstractQuery.getAccessPathMetaDatas(AbstractQuery.java:938)
    >>>>
    atkodo.query.AbstractQuery.isAccessPathDirty(AbstractQuery.java:745)
    at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:672)
    at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
    at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
    at
    com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
    >>>>
    vailabilityQueryBean.java:84)
    at
    com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
    >>>>
    ionBean.java:1504)
    Oddly, my ra.xml already has the following properties set.
    <config-property>
    <description>If false, then the JDO implementation mustconsider
    modifications, deletions, and additions in the PersistenceManager
    transaction cache when executing a query inside a transaction. Else,the
    implementation is free to ignore the cache and execute the querydirectly
    against the data store.</description>
    <config-property-name>IgnoreCache</config-property-name>
    <config-property-type>java.lang.Boolean</config-property-type>
    <config-property-value>true</config-property-value>
    </config-property>
    <config-property>
    <description>Whether or not Kodo should automatically flush
    modifications to the data store before executingqueries.</description>
    >>>>>>
    <config-property-name>FlushBeforeQueries</config-property-name>
    <config-property-type>java.lang.String</config-property-type>
    <config-property-value>true</config-property-value>
    </config-property>
    I also tried explicitly calling ((KodoPersistenceManager)pm).flush()before
    newQuery to no avail. I am at a loss how to get the Query to NOT
    execute
    in-memory.
    Ben
    "Ben Eng" <[email protected]> wrote in message
    news:[email protected]...
    I'm very happy to see this feature added to 3.0.0 along with
    methodQL.
    >>>>>>
    This
    should alleviate a lot of the issues with trying to use only JDOQL,
    especially when the desired SQL statemetn is well understood. Thanks
    for
    adding this!--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

Maybe you are looking for

  • Problem with JPanel in JFrame

    hai ashrivastava.. thank u for sending this one..now i got some more problems with that screen .. actually i am added one JPanel to JFrame with BorderLayout at south..the problem is when i am drawing diagram..the part of diagram bellow JPanel is now

  • SP11 upgrade is stuck in Pre-Processing phase MAIN_INIT/REPACHK_CLONE due to inactive object

    Hi , SP11 upgrade is stuck in Pre-Processing phase MAIN_INIT/REPACHK_CLONE with the following errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REPACHK ERRORS and RETURN CODE in GET_INACTIVE_SAP_OBJECTS.SMG ~~~~~~~~~~~~~

  • HTML5 audio tag problem iOS 3.2.2

    Hi everyone, We've been developing web based applications for the iPad in HTML5 and we have come across a problem in that mp3 files play on an endless loop, when we only want them to play once. We've tested audio file playback with m4a files and have

  • File Explorer causes Dreamweaver 8 to crash

    I am trying to use Dreamweaver 8 on a new Vista Home Premium 64 bit computer, but it crashes when I try to open a file.

  • How to map company code for customer master in CRM

    Dear CRM Experts, The scenario is ,Customer Master is created in SAP CRM 6.0 and it flows to ECC 6.0 . After replicating the data to ecc i am manually assinging company code to customer master.Is there any option to map company code to crm customer m