Query and other association

Good Afternoon Expert;
I dont know why I cant figure out the logic to this and I have spent 4hours thinking about this. All help will be appreciated. I have a distribution query that produces the following output
Placename   distribution Amount
Berlin            5
London         4
Paris             6Now the idea, is basically, I have another table called table_A that contains the following information
Id                  Placename                     Away
G34563          Berlin                             N
G33445          London                          N
G34455          Paris                               Y
G55567          Berlin                              Y
G55561          Berlin                              N
G55562          London                          Y
G55563          Paris                              Y
G55564          Paris                     Y
G55565          London                         Y
.Now the idea, is basically using the distribution query result, i am meant to go into table_A and pickout various ID, and have those ID evenly distributed to each placename. So far example
let say we have a place name called berlin and the distribution Amount is 5, then I am meant to go into the table_A and pick out several Id that possess at least 2 placename that is Berlin, 2 placename that is Paris, 1 Placename that is London for a total of 5.
So the final result and display should be something like this
ID                     Placename           Away
G34563             Berlin                   N
G55567             Berlin                   N
G55563             Paris                    Y
G55564             Paris                   Y
G33445          London                   NHow can this be achieved. All helps and idea will be appreciated.

Good Afternoon Expert;
I dont know why I cant figure out the logic to this and I have spent 4hours thinking about this. All help will be appreciated. I have a distribution query that produces the following output
Placename   distribution Amount
Berlin            5
London         4
Paris             6Now the idea, is basically, I have another table called table_A that contains the following information
Id                  Placename                     Away
G34563          Berlin                             N
G33445          London                          N
G34455          Paris                               Y
G55567          Berlin                              Y
G55561          Berlin                              N
G55562          London                          Y
G55563          Paris                              Y
G55564          Paris                     Y
G55565          London                         Y
.Now the idea, is basically using the distribution query result, i am meant to go into table_A and pickout various ID, and have those ID evenly distributed to each placename. So far example
let say we have a place name called berlin and the distribution Amount is 5, then I am meant to go into the table_A and pick out several Id that possess at least 2 placename that is Berlin, 2 placename that is Paris, 1 Placename that is London for a total of 5.
So the final result and display should be something like this
ID                     Placename           Away
G34563             Berlin                   N
G55567             Berlin                   N
G55563             Paris                    Y
G55564             Paris                   Y
G33445          London                   NHow can this be achieved. All helps and idea will be appreciated.

Similar Messages

  • JBO-27122 - How to replace ESTCOUNT query and other SQL statements

    Hi,
    Env - JDeveloper 11.1.1.1.0
    I'm trying to run simple CRUD application (Dept --<Emp) with unsuported database (Informix 11.5). The problem is that ADF runs following query on startup:
    SELECT (1) FROM
        (SELECT Emp1.empno,        
                Emp1.ename,        
                Emp1.job,        
                Emp1.mgr,        
                Emp1.hiredate,        
                Emp1.sal,        
                Emp1.comm,        
                Emp1.deptno
           FROM emp Emp1
          WHERE Emp1.deptno = ?) ESTCOUNTbut Informix don't understand SELECT (1) clause and need SELECT (*). Is there any way to replace this. Further - is this possible to customize queries passed to database. I think, that my general problem is that Informix has problems with SQL dialect used by ADF. I noticed also JBO-27122 with filtering table:
    SELECT Emp1.empno,        
           Emp1.ename,        
           Emp1.job,        
           Emp1.mgr,        
           Emp1.hiredate,        
           Emp1.sal,        
           Emp1.comm,        
           Emp1.deptno
    FROM emp Emp1
    WHERE ( ( ( (Emp1.job LIKE ? )
      AND (Emp1.deptno = ? ) ) ) )
      AND Emp1.deptno = ?and also UPDATE statement.
    It's very important for me to run ADF 11 app with Informix 11.5 beacause it's main database in y company.
    Kuba

    Hi Steve,
    Now I have following builder:
    public class InformixSQLBuilder extends SQL92SQLBuilderImpl{  
        @Override
        protected boolean getSupportsAliasInUpdateStatements() {
            return false;
        @Override
        public String getQueryHitCountSQL(RowSet rs){
            return null;
        public static SQLBuilder getInterface() {
          return new InformixSQLBuilder();
    Update, Insert, Delete works !!! but it seems that getQueryHitCountSQL() method can not returns null. When after DML operation when I try to scroll to another Dept in BC tester I get following exception:
    Exception in thread "AWT-EventQueue-0" oracle.jbo.AttributeLoadException: JBO-27022: Nie udało się wczytać wartości o indeksie 1 z obiektem Javy typu java.lang.Integer z powodu java.sql.SQLException.
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2187)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         ... 26 more
    ## Detail 0 ##
    java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [466] loadFromResultSet failed (1)
    [467] DCBindingContainer.reportException :oracle.jbo.AttributeLoadException
    [468] oracle.jbo.AttributeLoadException: JBO-27022: Nie udało się wczytać wartości o indeksie 1 z obiektem Javy typu java.lang.Integer z powodu java.sql.SQLException.
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2187)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:967)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:411)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:117)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6134)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5899)
         at java.awt.Container.processEvent(Container.java:2023)
         at java.awt.Component.dispatchEventImpl(Component.java:4501)
         at java.awt.Container.dispatchEventImpl(Container.java:2081)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
         at java.awt.Container.dispatchEventImpl(Container.java:2067)
         at java.awt.Window.dispatchEventImpl(Window.java:2458)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         ... 45 more
    ## Detail 0 ##
    java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:967)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:411)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:117)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6134)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5899)
         at java.awt.Container.processEvent(Container.java:2023)
         at java.awt.Component.dispatchEventImpl(Component.java:4501)
         at java.awt.Container.dispatchEventImpl(Container.java:2081)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
         at java.awt.Container.dispatchEventImpl(Container.java:2067)
         at java.awt.Window.dispatchEventImpl(Window.java:2458)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [469] JUErrorHandlerDlg.reportException(oracle.jbo.AttributeLoadException)
    Exception in thread "AWT-EventQueue-0" oracle.jbo.AttributeLoadException: JBO-27022: Nie udało się wczytać wartości o indeksie 1 z obiektem Javy typu java.lang.Integer z powodu java.sql.SQLException.
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2187)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         ... 26 more
    ## Detail 0 ##
    java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [470] loadFromResultSet failed (1)Kuba

  • I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    Thanks - I guess it is like there were two of me!
    I bought the iPhone first and it seemed natural to link it to the (work) e-mail address which was in constant use. The iMac for home use came next and it seemed natural to use my home e-mail address, particularly as I knew by then that I would lose the work address after my imminent retirement. The same logic went for the recent puchase of the MacAir. I am not sure what happened with the iPad (also a recent purchase) - iTunes seemed to puch me towards the same ID as the iPhone.
    It is not a huge problem - just makes my persona look schizoid! Otherwise very happy with everything Apple.

  • I have a problem, my wife has an ipad with photos , emails etc etc, she has recently got herself a new iPad Air, has now been using that for two or more months, more photos (new) more emails and other stuff. Will send next query as running out of room to

    I have a problem, my wife has an ipad with photos , emails etc etc, she has recently got herself a new iPad Air, has now been using that for two or more months, more photos (new) more emails and other stuff. What she wants to do is get all she wants from ipad 1 to new ipad without finishing up with 2 of everything which happen on previous occasion. I realise that she needs to tidy up ipad 1 first and get rid of thousands of emails etc. I need help.
    Thanks kiwihdrider

    Hi yes that works well when the new ipad hasn't been used. Trouble new one has been used for two months or more, has lots photos email etc etc. I am worried that these will go. When we did iPhone thru same process finished up with two of most things pics and emails. The emails alone were over 2 thousand and wife reluctant to delete them all. I would and just sort pics. Any other ideas
    Ta

  • Power Manager features and other problems associated with the T510

    For the better part of 5 years I've been a happy user of a IBM Z60m and decided it was time to pass my z60 off to my son and buy a new T510.  Well I after several weeks of ownership I can honestly say I'm irritated and frustrated by several ongoing issues and am ready to send the whole unit back.  
    From the time I pulled it out of the box I'm been having power management issues.  I've been on Microsoft's help forums, called lenovo support, and spent countless hours on blogs and forums looking for assistance.   No matter what I do in the lenovo power setting arrangements my computer aways goes in stanby after a minute of nonuse and then asks me for my windows password.  So after an entire day of inserting my password my frustration level is off the chart.  I removed the password in the user settings that didn't help.  I changed the global settings to turn off password in stanby mode that didn't help.  I've changed the power choice feature to optimize and others but none of that helped.  
    Beyond those problems... I inserting two different disks to insert new programs and my system kept telling me it couldn't read either.  I first thought they were scratch but my old ibm laptop read each without a problem.  
    So there you have it.  
    Solved!
    Go to Solution.

    Are you sure the system is going into standby after 1 minute?  Or is the screen being locked? 
    Try this:
    1.  right-click on desktop and choose "personalize"
    2.  click on "screen saver" in the lower right corner
    3.  uncheck the box that says "On resume, display logon screen"
    Does that fix your issue?

  • SQL remote query and data-dictionary

    Hi,
    We are considering the implementation of SAP Business One 2005. I've installed a demo version but in order for it to continue to support some business functions I need to perform a number of SQL queries against the data. Unfortunately I'm having difficulties in getting the answer from our reseller.
    Does anyone know the answers to the following question. I'd very much appreciate some help.
    1) Is there a data-dictionary document showing which tables perform which roles and the associated joins/associations.
    2) Is it 'advised' to open the SAP datasource directly to perform a SELECT query to obtain the results or should a third-party tool be used?
    3) Do I need the SDK if I want to perform direct SELECT queries or if I want to automate posting invoices to SAP? We have competent programmers in the company - I believe they use VB6 and VB.net.
    4) Is there an example if I simply wanted to query all suppliers within SAP? (e.g. SELECT NAME FROM Supplier_tbl...etc..etc)
    Any help would be very much appreciated - it's a huge application and I'm struggling a little.
    Many thanks,
    Gavin Russell.

    Gavin,
    The forum that you have posted your questions in is or questions related to the SAP Business One Integration for SAP NetWeaver.  Your questions seem to be along the line of general data access to SAP Business One.  You should typically post those types of questions in the SAP Business One Discussion Forum or the SAP Business One SDK Discussion Forum.
    As to your questions ...
    1.  The definition of the SAP Business One table schema is part of the SAP Business One SDK Help Center documentation.  You simply need to install the SAP Business One SDK Help and you will have it.  There is not a "data dictionary" other than this documentation.
    2.  Typically any direct access to SAP Business One data using SQL is discouraged as if data corruption occurs as a result of it, the environment would not then be supported by SAP.
    3.  If you want to push data into SAP Business One, as stated, direct access to the Business One database is forbidden.  You would use the SAP Business One SDK for this.
    4.  You can use the SAP Business One Query Manager/Wizard in the SAP Business One product which in essence is performing SQL type SELECTS for data on Business One tables.
    HTH,
    Eddy

  • Shared Components APEX Report Query and Layout

    Does anyone know how to call the report query and layout from the Shared components section from a page within the application?

    mtbdude40 wrote:
    What I need is this:  The ability to create a PDF report with a custom header defining the data (example - select * from emp where deptno = :deptno and the header includes the department name).
    I use this white paper as my source:  http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf
    You need to build and use a Shared Resource -> Report Queries.
    The Report Query will have two queries associated with it (see below).
    one query will be for the header information, the other will be for the data.
    use the "download" of the "xml data" as your source for Altova/other tools.
    If you add/remove/change queries, You'll have to redo your report (from scratch) as that changes the XML Schema required. (at least, with my experience)
    Once you get the hang of it, 2x queries is easy (Header, data)
    I've experimented with 3x queries (header, master,details) but have been unsuccessful.  I have some ideas though ("link" master->detail info via XPath stuff within Altova) but haven't gotten around to testing it.
    If you want to run the report for multiple departments....That might require some finesse.
    Unfortunately, the Source of the Queries can't be a scalar SQL that returns 1 row of 1 column of data type XMLType....
    MK

  • Printing Web query and related KM document together as PDF (in portal)

    Dear Gurus
    We are on NW2004s and have portal etc. installed.
    <b>Scenario:</b>
    We have set Guided procedure in portal where we use a simple web template as  iview in association with a single KM document. The KM document is used for entering comments by different users after they have seen the query results. As a last step of the Guided Procedure we would like to create a PDF printout of the related query and the KM document with comments in it. Ideally we would like to print these 2 objects with a single print function and if possible on the same page.
    <b>Questions:</b>
    -Is there a way to print the Query results iView and the associated KM document with a single Print function?
    -Can I Print these 2 objects on the same page?
    I can try a work around, to have a document for commenting purpose directly as web item in the template itself. Then use this in the Guided procedures. However from the information i know, there are only limited objects from the web template which are printed to PDF, the rest are just ignored.So I believe that the document with comments would still not be printed (refer to the link).
    Ref:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/68ce8391886e47e10000000a422035/frameset.htm
    Pls. Suggest,. I would surely give good points for this.
    Thanks in advance
    Gugi

    Not yetr resolved. Just wrong forum.

  • After updating to Firefox 7.0.1, menu bar for Google,yahoo, Facebook (message,notification,profile,home) and others site are disabled. How can solve this problem?

    after updating to Firefox 7.0.1, menu bar for Google(web ,image,video,map etc),yahoo, Facebook (message,notification,profile,home) and others site are disabled. even I cant log out from different sites cz the log out bar is completely disabled. I tried with Firefox 4;5 and 6, same problem exist . I tried by active all add ons for facebook, same problem exist. If I use internet explorer , I don't find such problem with it.
    How can I solve this problem?

    Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
    BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
    Thanks for your help; hope this wasn't extremely long.

  • In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    The query is re-issued as a flashback query and the client process can continue to fetch from the cursor. This is described in the Net Services Administrators Guide, the section on Transparent Application Failover.

  • What is the diff b/w logical query and physical query?

    Thanks In advance

    In OBIEE terms the logical query is how you query the BI Server, the Presentation services sends logical SQL to the BI Server, you can also write your own using JDBC , pull from BI Server using ODI etc.
    The BI Server engine takes this logical query and writes (a number of) phyiscal querie(s) to satisfy the logical request, depeninding on how your BMM and Physical layer is setup. There are a number of rules the BI Server evaluates before deciding the most appropriate Physical query to generate, rules include Physical Joins, Aggregate tales / Hierarchy levels and so on.
    Hope this helps,
    Good luck with interview :-)
    Alastair

  • Creating a print button to call a Report Query and pass filters

    If i use the REPORT QUERY option in APEX 4 to create an statement that is the same one used in an interactive report, can I create a link or button to the REPORT QUERY and pass all the session and filter information from the interactive report to the report query?
    This way I can have the interactive report screen where the user can do all sorts of modifications and such and then pass those to the REPORT QUERY so I can call that from a custom link or button.
    You may ask "why does he need another print button?"
    Answer: I am using a view that has some embedded HTML tags to format the output really nicely. The HTML download version created by the interactive reports works beautifully. The customer also wants a PDF version (meh) which does not render the HTML tags and actually echos them as part of the text. I found that I can create another view that uses the CHR function to create all the breaks and such I was doing with HTML and these do render properly in PDF. So, I figured just have 2 reports: 1 Interactive and 1 using a REPORT QUERY. I just want to call the REPORT QUERY version but use the Interactive Search form to set all the parameters.
    Or, am I over thinking this and there is an easier method?
    I made a previous post where I showed how I got the APEX printing to work and i hoped that helped someone out - fixing this issue would put the whole thing to rest.
    Thanks

    Is BI Publisher desktop (MS Word add-in) a possibility? This would allow you to use MS Word to create your output template (RTF) that would result in a properly formatted PDF. Of course, you'd have to right an updated version of the query without HTML embedded. Just thinking outside of the box.

  • How set authorizations for sales reports and other reports in SAPB1

    Hi, I'm currently working in SAP Business One Version 8.82
    The issue I'm facing is that I want to set it up so that certain users cannot see other users' sales information.  I know that I can turn on or off the Sales Analysis Report for various users for instance, but what I really want specifically is this.  Suppose we have 3 different teams: Team A consists of (Angie, Angela, and Anita the manager), Team B consists of (Bob, Barbara, and Ben the manager), Team C consists of (Cat, Charlie, and Courtney the manager).  I would like to make it so that everyone can view the individual sales order documents of everyone else (in case a customer calls and needs information, but the salesperson who created that document isn't there); however, Angie should only see her own orders when she does a Sales Analysis while Anita, the manager of Team A, should see the the orders of Angie, Angela, and herself of course.
    To summarize, I'd like to see the following
    1.  Each salesperson can lookup and view any sales order.
    2.  Each salesperson can run an sales report to view all his/her own open sales orders.
    3.  Each manager can run a sales report on his/her subordinates, but not on the other managers or their subordinates.
    4.  The boss or other people working in corporate are able to run a report on all open sales orders.
    What's the best way to approach this?  Is it best if I create my own report?  I haven't created any reports from scratch yet, so I'm not sure exactly how that works.  I'd like to be able to group the salespeople up by location if possible.  The sales analysis report doesn't really do that, but it is useful.  I just don't want everyone to be able to see the numbers on their peers.
    Thank you I appreciate any help or advice.

    Hi,
    1.  Each salesperson can lookup and view any sales order.
    Answer:
    Create own report by using query and save under query manager and the assign for all group. So that all sales person can run this query  and can get sales order detail.
    2.  Each salesperson can run an sales report to view all his/her own open sales orders.
    Answer:
    Create individual query ( add condition in where clause slpname = 'XXX') for each sales person and save it under query manager and assign to particular user group
    3.  Each manager can run a sales report on his/her subordinates, but not on the other managers or their subordinates.
    Answer:
    Create query for only particular team (  condition is slpname = XXX OR YYY OR ZZZ) and save under query manager. Make schedule report on this and send it to only particular manger
    Same way create for another manager and schedule report.
    4.  The boss or other people working in corporate are able to run a report on all open sales orders
    Answer.
    Create query for all sales person and schedule report to big boss.
    Hope you can get an idea.
    Let me know if you need sales report ( advice required field)
    Thanks & Regards,
    Nagarajan

  • Web Analysis Error -- Error while executing query and retrieving data

    Regarding Web Analysis:
    We have a number of reports that we created. yesterday they were all working fine. today we try to open them and most are generating an error.
    The error is:
    Error while executing query and retrieving data.; nested exception is:
    com.hyperion.ap.APException: [1033] Native:
    1013033[Thu Oct 22 09:08:17
    2009]server name/application name/database name/user name/Error91013033)
    ReportWriter exit abnormally
    Does anyone have any insight into what is going on?
    My version information is:
    Hyperion System 9 BI+ Analytic Administration Services 9.3.0.1.1 Build 2
    Web Analysis 9.3.0.0.0.286
    Thanks in advance for your help.
    DaveW

    Hi,
    And also click on check option by opening the query in Query designer,as Mr . Arun suggested.
    And if you get any error in checking, see the long message(detail).
    With rgds,
    Anil Kumar Sharma .P

  • Changing my Apple ID and its associated email address

    For the past 6 years or so I have used the same Apple ID and email. It started out as an Aol account and is now my [email protected] as my Apple ID. I want to change my Apple ID and its associated email account to Gmail since that is what I use more often now. I see the option to change Email Address has next to it "This will be your new Apple ID", which is exactly what I want to do. I have two questions:
    1) I will change the Email Address field to my Gmail address. Will this create any sort of confusion with the DRMed songs and videos I purchased in the past?
    2) For posting on these discussion boards I have yet another Apple ID (created kind of by mistake, a long story). Is there any way I can merge the two?

    I attempted to do the the same (similar) thing yesterday (Sept 2nd, 2010).
    I wanted to change my current Apple ID used for iTunes Store (which was created years ago when I bought my wife an iPod) to be my Apple ID (created when I joined the Apple Developer program way before iTunes).
    After changing the information and clicking the "Done" button, I received an error message that was positioned on the "Apple ID" box, which stated "this is not a valid email address". I assumed that the "email pattern filter" was erroneously attached to the Apple ID input box, so I contacted iTunes Store Customer Support.
    *iTunes Store Customer Support response:*
    +I'm very sorry for the inconvenience, since "<my.user.name>" is already an Apple ID it cannot be used for another iTunes account. At this point, it can only become it's own iTunes account.+
    I'm posting my followup question below, in case anyone on the forum has these same questions or has any experience with actually doing what Apple proposed - create a new account to be used with an existing iTunes Library - and has any experiences they might wish to share.
    *My followup question to iTunes Store Customer Support (waiting for reply):*
    So, what are the implications of creating a new (second) iTunes account?
    - Will I keep my same iTunes Library (i.e. Will all previous items be visible, when using the new account to purchase items)?
    - How will this affect devices (iPhone, iPod) that are synched to the current iTunes Library?
    So, I guess what I'm asking is; "How tightly coupled is the iTunes "account" information bound to the Library"?
    I don't want to create a situation where:
    - My iPhone and Apps gets wiped out when I sync because it sees a different "account name".
    - My Library looks like I have "zero" items (Music/Videos/Playlist) because I've logged into iTunes with a different "account name"
    I'm attempting to only change the iTunes Apple ID and email associated with the account for purchasing items through the iTunes Store. I want to preserve all other aspects of the current set up.
    Is this possible?

Maybe you are looking for

  • How to hide the data in particular table in oracle 10g

    How to hide the data in particular table in oracle 10g i want steps

  • When organizing my bookmark folders I accidentally dragged one off screen and it disappeared. How do I get it back?

    I was moving folders around and one got dragged off screen. I let go of the mouse and it disappeared. I tried to undo the move but the option was not available. When I go to save a bookmark, the option for the folder is still there, but in the bookma

  • Netflix Shows Only Blank Screen

    This problem started two weeks ago. System: Windows XP Latest Firefox browser When I select a Netflix movie, it comes up as a blank screen. Previously I had been using Firefox and Netflix for years without any problems. I have uninstalled an reinstal

  • Change form layout by User's Manager

    Hi all, 1. I need change forms of provisioning e management for User's Manager/Administrator of Resource view only resources management by him. Eg. If Admin1 access User1 profile and go to resource profile, I need show only resources that he is Admin

  • Image height and width

    Please any one can help on how find image width and height in jsp I tried out this code ImageIcon ic = new ImageIcon("abc.gif"); out.println(ic.getIconHeight()); but it is showing as java.lang.Exception I don't know why it is giving java.lang.Excepti