Execute view links

Dear All,
Good Evening,
My requirement is pass header level(first vo) inventory item id
to 2nd region
for this i create a view link based on these 2 view objects.
for this i wrote the code like this,
xxcrmForQuoteOrderItemsVOImpl vo = getxxcrmForQuoteOrderItemsVO1();
String wclause = "item_code='" + itemcode + "'";
vo.setWhereClause(wclause);
vo.executeQuery();
String inventoryitemid=vo.first().getAttribute("InventoryItemId").toString();
xxcrmForItemsStockDetailsVOImpl vo1 = getxxcrmForItemsStockDetailsVO1();
String wclause1 = "INVENTORY_ITEM_ID='" + inventoryitemid + "'";
vo1.setWhereClause(wclause1);
vo1.executeQuery();
Its working fine,
But my doubt is
instead of writing this code
how to pass the first view object attribute val to 2nd view object attribute.
please any one can help me

Hi,
If you use view link then there is no need to pass value to second VO it will be achieved through view link.
Even then if you want to pass then the joining attribute(po_header_id will be joining attribute in po_headers and lines) just include that in your where clause and pass the value to second vo and execute query on second vo.
Let me know if you want to know anything else.
Regards,
Reetesh Sharma

Similar Messages

  • Oracle.jbo.NoDefException: JBO-25002: View link Definition not found

    Hi All,
    I am using Jdev 11.1.1.3 .I created an normal JSPX and created master details table.When i am running this page .in the log i am getting this error.
    [07:43:32 AM] Redeploying Application...
    oracle.jbo.NoDefException: JBO-25002: Definition oracle.fod.storefront.link.BrowseProductsWarehouseStockLevelsLink of type View Link Definition is not found.
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:495)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:413)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:395)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:749)
         at oracle.jbo.server.ViewLinkDefImpl.findDefObject(ViewLinkDefImpl.java:135)
         at oracle.jbo.server.ViewDefImpl.resolveViewLinkAccessorAttribute(ViewDefImpl.java:8076)
         at oracle.jbo.server.ViewDefImpl.processViewLinkAccessors(ViewDefImpl.java:8258)
         at oracle.jbo.server.ViewDefImpl.processAccessors(ViewDefImpl.java:8067)
         at oracle.jbo.server.ViewDefImpl.getViewCriteria(ViewDefImpl.java:1563)
         at oracle.jbo.server.ViewCriteriaManagerImpl.initViewCriteriaManager(ViewCriteriaManagerImpl.java:66)
         at oracle.jbo.common.BaseViewCriteriaManagerImpl.getViewCriteriaClause(BaseViewCriteriaManagerImpl.java:444)
         at oracle.jbo.server.ViewObjectImpl.resetDefaultAssocConsistent(ViewObjectImpl.java:11897)
         at oracle.jbo.server.ViewObjectImpl.removeViewLink(ViewObjectImpl.java:1923)
         at oracle.jbo.server.ViewLinkImpl.setDef(ViewLinkImpl.java:156)
         at oracle.jbo.server.ApplicationModuleImpl.removeChild(ApplicationModuleImpl.java:1033)
         at oracle.jbo.server.ComponentObjectImpl.remove(ComponentObjectImpl.java:329)
         at oracle.jbo.server.ApplicationModuleImpl.removeViewLinks(ApplicationModuleImpl.java:4301)
         at oracle.jbo.server.ApplicationModuleImpl.resetState(ApplicationModuleImpl.java:4636)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:322)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4376)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.removeResources(ApplicationPoolImpl.java:2901)
         at oracle.jbo.pool.ResourcePool.destroy(ResourcePool.java:656)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.destroy(ApplicationPoolImpl.java:2920)
         at oracle.jbo.pool.ResourcePoolManager.destroy(ResourcePoolManager.java:163)
         at oracle.jbo.common.ampool.PoolMgr.destroy(PoolMgr.java:86)
         at oracle.jbo.common.ampool.PoolMgr$1.scopeInvalidated(PoolMgr.java:66)
         at oracle.adf.share.ADFScopeHelper.fireScopeInvalidated(ADFScopeHelper.java:49)
         at oracle.adf.share.config.ADFConfigImpl.releaseResources(ADFConfigImpl.java:676)
         at oracle.adf.share.config.ADFConfigFactory.cleanUpApplicationState(ADFConfigFactory.java:432)
         at oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener.postStop(ADFApplicationLifecycleListener.java:96)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PostStopAction.run(BaseLifecycleFlow.java:351)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
         at weblogic.application.internal.flow.BaseLifecycleFlow.postStop(BaseLifecycleFlow.java:95)
         at weblogic.application.internal.flow.HeadLifecycleFlow.unprepare(HeadLifecycleFlow.java:290)
         at weblogic.application.internal.BaseDeployment$1.previous(BaseDeployment.java:1233)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:167)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:159)
         at weblogic.application.internal.BaseDeployment.unprepare(BaseDeployment.java:495)
         at weblogic.application.internal.EarDeployment.unprepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.unprepare(DeploymentStateChecker.java:205)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.unprepare(AppContainerInvoker.java:117)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.silentUnprepare(AbstractOperation.java:689)
         at weblogic.deploy.internal.targetserver.operations.RedeployOperation.unprepareDeployment(RedeployOperation.java:193)
         at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:114)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    <13 Aug, 2012 7:43:36 AM IST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application Storefront-11 is not versioned.>
    Any suggestion what would be the possible solution for this.

    The only possible solution here is to put the ViewDefination at the required place i.e. oracle.fod.storefront.link.BrowseProductsWarehouseStockLevelsLink.
    I will re frame the question for you. Is the file present at its desired location ? Can you do a clean build on the project and deploy again ?

  • Oracle ADF with view Links

    Hello i use Oracle adf framwork to develop my Business logic through Business component and oracle as Database
    i have an error with my View link
    i got this error msg:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT Meldung.MELDUNG_ID, Meldung.MELDUNG_MESSAGE, Meldung.SACHBEARBEITER_ID, Meldung.MELDUNG_DATUM FROM MELDUNG Meldung WHERE Meldung.SACHBEARBEITER_ID = :Bind_SachbearbeiterId
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1239)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:913)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7282)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1227)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1078)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2800)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3058)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2797)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:7208)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3555)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3697)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3657)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3440)
         at oracle.jbo.server.ViewRowSetIteratorImpl.previous(ViewRowSetIteratorImpl.java:1895)
         at oracle.jbo.server.ViewRowSetImpl.previous(ViewRowSetImpl.java:3609)
         at oracle.jbo.server.ViewObjectImpl.previous(ViewObjectImpl.java:10248)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1080)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         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:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         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: Invalid column type
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
         at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15891)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4665)
         at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3673)
         at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:21459)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1197)
         ... 59 more
    ## Detail 0 ##
    java.sql.SQLException: Invalid column type
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
         at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15891)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4665)
         at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3673)
         at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:21459)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1197)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:913)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7282)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1227)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1078)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2800)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3058)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2797)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:7208)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3555)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3697)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3657)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3440)
         at oracle.jbo.server.ViewRowSetIteratorImpl.previous(ViewRowSetIteratorImpl.java:1895)
         at oracle.jbo.server.ViewRowSetImpl.previous(ViewRowSetImpl.java:3609)
         at oracle.jbo.server.ViewObjectImpl.previous(ViewObjectImpl.java:10248)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1080)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         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:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         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)
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: SELECT Termin.TERMIN_ID, Termin.TERMIN_BEGIN_DATUM, Termin.SACHBEARBEITER_ID, Termin.TERMIN_MESSAGE, Termin.TERMIN_END_DATUN FROM TERMIN Termin WHERE Termin.SACHBEARBEITER_ID = :Bind_SachbearbeiterId

    Hello John,
    Thanks for the reply. I can't find any material so that I can aware with JSF introduction (with demos) and ADF Faces. So will you please suggest me some tutorial or demos related to JSF and ADF faces. I passed through the video demos of Oracle ADF homepage but still I can't understand the use of those tags.
    regards,
    Kush
    Edited by: kush on Feb 22, 2012 12:07 AM

  • How to pass parameter when create view link

    Hi,
    I used R12 to implement OAF. I create a VO with paramenter such as SELECT item_code,parent_item_code,month_budget_id
    FROM cux_ce_month_budget_lines_t
    where month_budget_id=:1
    But when I create VL for this VO. It seems the parameter :1 can not be passed.
    Could some one to help lookinto this?
    Best Regards,
    Eileen

    You donot need to pass parameter while creating the View Link. Once the view link is created then you assign the bind parameter to the master VO and execute the View link. The Child VO would automatically be executed.

  • View links

    Hi,
    I have defined a view link between 2 entity objects, based on the primary key of the source(master), and the foreign key of the destination(details) which have a one-many relationship. I am trying to traverse from a destination row to the master row by using the getXXXview() on the detail row.
    Any ideas on the following stack trace of the exception that is thrown:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT PerEo.PERIDN, PerEo.NATOFPER, PerEo.PERSTAT, PerEo.PERSTATCHGD, PerEo.PERXMTSTAT, PerEo.NATNPOPGRPCD, PerEo.POSTADDR1, PerEo.POSTADDR2, PerEo.POSTADDR3, PerEo.POSTADDR4, PerEo.POSTADDR5, PerEo.POSTCDPOST, PerEo.POSTADDRCORIND, PerEo.ADDRCHGD, PerEo.STREETADDR1, PerEo.STREETADDR2, PerEo.STREETADDR3, PerEo.STREETADDR4, PerEo.POSTCDSTREET, PerEo.DCEEADDR, PerEo.BUSORSURNAME, PerEo.HOLDCMPREGTN, PerEo.TRADENAME, PerEo.PERIDNPROX, PerEo.PERIDNREP, PerEo.NOFBRANCHES, PerEo.INITIALS, PerEo.AREACD, PerEo.PERMOVEIND, PerEo.PERSUSPECTIND, PerEo.DTOWN, PerEo.TIMESTAMP, PerEo.RECSTAT FROM NATIS.PER PerEo WHERE (? = AliasEo.PERIDN)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:607)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:2600)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:521)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2197)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1141)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2240)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:287)
         at oracle.jbo.server.ViewAttributeDefImpl.get(ViewAttributeDefImpl.java:302)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:800)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:570)
         at enatis.per.AliasViewRowImpl.getPerView(AliasViewRowImpl.java:297)
         at enatis.per.PerIdSmImpl.doBrGetPerRow(PerIdSmImpl.java:827)
         at enatis.per.PerIdSmImpl.isValidIdDocN(PerIdSmImpl.java:372)
         at enatis.per.PerIdSmImpl.doBrPerIdVoOnSet(PerIdSmImpl.java:265)
         at enatis.per.PerIdSmImpl.setPerIdVo(PerIdSmImpl.java:226)
         at enatis.per.PerChangeParticularsTmImpl.setPerIdVo(PerChangeParticularsTmImpl.java:96)
         at enatis.per.ui.actions.PerIdPost.execute(PerIdPost.java:62)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.sql.SQLException: ORA-00904: "ALIASEO"."PERIDN": invalid identifier
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:241)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1477)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:888)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2267)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2525)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:452)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:382)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:549)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:2600)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:521)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2197)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1141)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2240)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:287)
         at oracle.jbo.server.ViewAttributeDefImpl.get(ViewAttributeDefImpl.java:302)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:800)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:570)
         at enatis.per.AliasViewRowImpl.getPerView(AliasViewRowImpl.java:297)
         at enatis.per.PerIdSmImpl.doBrGetPerRow(PerIdSmImpl.java:827)
         at enatis.per.PerIdSmImpl.isValidIdDocN(PerIdSmImpl.java:372)
         at enatis.per.PerIdSmImpl.doBrPerIdVoOnSet(PerIdSmImpl.java:265)
         at enatis.per.PerIdSmImpl.setPerIdVo(PerIdSmImpl.java:226)
         at enatis.per.PerChangeParticularsTmImpl.setPerIdVo(PerChangeParticularsTmImpl.java:96)
         at enatis.per.ui.actions.PerIdPost.execute(PerIdPost.java:62)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:536)

    Thanks,
    (I removed irrelevent attributes on the following XML files.)
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <Entity
    Name="PerEo"
    DBObjectType="table"
    DBObjectName="NATIS.PER"
    AliasName="PerEo"
    BindingStyle="Oracle"
    UseGlueCode="false"
    CodeGenFlag="4"
    RowClass="enatis.per.PerEoImpl" >
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.10.7" />
    <AttrArray Name="_publishEvents">
    </AttrArray>
    </DesignTime>
    <Attribute
    Name="PerIdN"
    IsNotNull="true"
    Precision="12"
    Type="java.lang.String"
    ColumnName="PERIDN"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.PER"
    PrimaryKey="true"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="12" />
    </DesignTime>
    </Attribute>
    <ViewLinkAccessor
    Name="AliasView"
    ViewLink="enatis.per.PerAliasVl"
    ViewLinkEnd="enatis.per.PerAliasVl.AliasView"
    ViewLinkOtherEnd="enatis.per.PerAliasVl.PerView"
    Type="PerViewRowImpl"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <Key
    Name="SysC006164" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.PerEo.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C006164" />
    <Attr Name="_checkCondition" Value="&#34;PERIDN&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="PereoPrimaryKey" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.PerEo.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="PEREO_PRIMARY_KEY" />
    <Attr Name="_isPrimary" Value="true" />
    </DesignTime>
    </Key>
    </Entity>
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <Entity
    Name="AliasEo"
    DBObjectType="table"
    DBObjectName="NATIS.ALIAS"
    AliasName="AliasEo"
    BindingStyle="Oracle"
    UseGlueCode="false"
    CodeGenFlag="4"
    RowClass="enatis.per.AliasEoImpl" >
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.10.7" />
    <AttrArray Name="_publishEvents">
    </AttrArray>
    </DesignTime>
    <Attribute
    Name="IdDocTypeCd"
    IsNotNull="true"
    Precision="2"
    Type="java.lang.String"
    ColumnName="IDDOCTYPECD"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.ALIAS"
    PrimaryKey="true"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="2" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="IdDocN"
    IsNotNull="true"
    Precision="13"
    Type="java.lang.String"
    ColumnName="IDDOCN"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.ALIAS"
    PrimaryKey="true"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="13" />
    </DesignTime>
    </Attribute>
    <Attribute
    Name="PerIdN"
    IsNotNull="true"
    Precision="12"
    Type="java.lang.String"
    ColumnName="PERIDN"
    ColumnType="CHAR"
    SQLType="VARCHAR"
    TableName="NATIS.ALIAS"
    RetrievedOnUpdate="true"
    RetrievedOnInsert="true" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="12" />
    </DesignTime>
    </Attribute>
    <ViewLinkAccessor
    Name="PerView"
    ViewLink="enatis.per.PerAliasVl"
    ViewLinkEnd="enatis.per.PerAliasVl.PerView"
    ViewLinkOtherEnd="enatis.per.PerAliasVl.AliasView"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <Key
    Name="SysC005807" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.IdDocTypeCd" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C005807" />
    <Attr Name="_checkCondition" Value="&#34;IDDOCTYPECD&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="SysC005808" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.IdDocN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C005808" />
    <Attr Name="_checkCondition" Value="&#34;IDDOCN&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="SysC005809" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="SYS_C005809" />
    <Attr Name="_checkCondition" Value="&#34;PERIDN&#34; IS NOT NULL" />
    <Attr Name="_isCheck" Value="true" />
    </DesignTime>
    </Key>
    <Key
    Name="AliaseoPrimaryKey" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasEo.IdDocTypeCd" />
    <Item Value="enatis.per.AliasEo.IdDocN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_DBObjectName" Value="ALIASEO_PRIMARY_KEY" />
    <Attr Name="_isPrimary" Value="true" />
    </DesignTime>
    </Key>
    </Entity>
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
    <ViewLink
    Name="PerAliasVl"
    Where="? = AliasEo.PERIDN" >
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.10.7" />
    </DesignTime>
    <ViewLinkDefEnd
    Name="PerView"
    Cardinality="1"
    Owner="enatis.per.PerView"
    Source="true" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.PerView.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_minCardinality" Value="1" />
    <Attr Name="_isUpdateable" Value="true" />
    <Attr Name="_finderName" Value="PerView" />
    <Attr Name="_accessor" Value="true" />
    <Attr Name="_entityAccessor" Value="true" />
    </DesignTime>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="AliasView"
    Cardinality="-1"
    Owner="enatis.per.AliasView" >
    <AttrArray Name="Attributes">
    <Item Value="enatis.per.AliasView.PerIdN" />
    </AttrArray>
    <DesignTime>
    <Attr Name="_isUpdateable" Value="true" />
    <Attr Name="_finderName" Value="AliasView" />
    <Attr Name="_accessor" Value="true" />
    <Attr Name="_entityAccessor" Value="true" />
    </DesignTime>
    </ViewLinkDefEnd>
    </ViewLink>
    The code for the create etc has been removed but it looked like this.
    ViewLinkImpl perAliasVl = (ViewLinkImpl) getPerAliasVl1();
    PerViewImpl perView = (PerViewImpl) perAliasVl.getSource();
    AliasViewImpl aliasView = (AliasViewImpl) perAliasVl.getDestination();
    PerViewRowImpl perRow = (PerViewRowImpl) perView.createRow();
    AliasViewRowImpl aliasRow = (AliasViewRowImpl) aliasView.createRow();
    perRow.setPerIdN("new key");
    perView.insertRow(perRow);
    aliasRow.setIdDocTypeCd("1");
    aliasRow.setIdDocN("new doc");
    aliasView.insertRow(aliasRow);
    AttributeValException: AliasEo.PerIdN.....

  • View links / Associations best practices

    Hello,
    I have a little question on how to use view links and associations in an optimal way.
    The situation is the following:
    I have 2 tables: one master and one detail, I have therefore the following default classes:
    Entities: MasterImpl, DetailImpl,
    Views: MasterViewImpl, MasterViewRowImpl,
    View Rows: DetailViewImpl, DetailViewRowImpl,
    Association: FkMasterHasDetailAssoc
    View Link: FkMasterHasDetailLink
    I also hav an application module which I can use as a container faor all these.
    I need to process a series of rows from the Master view. Of course the process includes screening the corresponding detail rows.
    I'd like to know which one of the following solutions will give the best results in terms of performance, or maybe there is no difference:
    1/ Write a process() method in the MasterViewRowImpl view Row class, which uses the view link to retrieve the corresponding detail View rows. Then loop through the MasterView, calling process() on each row.
    2/ Write a process() method in the MasterImpl Entity class, which uses the Association's RowIterator to retrieve the corresponding detail entities. Then loop through the MasterView, calling process() on each row's underlying entity.
    3/ Include both views, linked by the view link, in the application module and implement a AppMod.process() method which loops through the MasterView and the DetailView.
    Which one will make best use of the resources, or execute the smallest number of queries? Or maybe there will be no difference at all?
    Thanks in advance for any answer
    Remi DEH
    Oops, before I forget: I'm using JDev3.1 / 8.1.6, both on NT and I'm developping, with BC4J, an application meant to run as a series of EJB, deployed either in JServer or OAS/iAS.
    null

    KeepItSimple,Stupid!
    That is, just because there are neat things like drop-down
    text, marquees, and such, doesn't mean you should use them.
    Stick to the basic HTML fonts and colors (use the
    w3schools web site for all
    things HTML and CSS.
    Instead of styles, create your lists by selecting Normal
    paragraphs and formatting with the Bullet and Number toolbar
    buttons.
    Keep your tables as simple as possible (try not to nest them
    and have all sorts of row and column spans, and try to avoid lists
    and figures, if you can). Also, break up very long tables into
    functional groupings with introductory headings.
    Use
    Peter Grainge's web
    site and
    Rick
    Stone's web site for all the best workarounds and diagnostics.
    Good luck,
    Leon

  • Order By clause - View link consistency

    Hi,
    I have created an EO ( EmpEO ) on EMP table. Created two VOs ( EmpVO and MaxEmpIdVO ) based on EmpEO.
    For MaxEmpIdVO,
    1. Set the Updatable for EmpEO to false
    2. Tuned it to return At Most One Row
    3. Set the Order By to "EMPNO Desc"
    I want to use this VO to get maximum of EmpNo.
    Added these two VOs to AM.
    After creating a new EmpVO row, the row gets added to rowset of MaxEmpIdVO also because of view link consistency.
    But, when I re-executed the query for MaxEmpIdVO, it resulted in two rows ( the newly added row and the row with maximim empid in DB ). MaxEmpIdVO.first() returns the newly added row though it's not the row with maximum EmpId.
    Is it the expected behaviour ?
    I was expecting it to return the row with maximum EmpId among the rows in DB and newly added rows through EmpVO as well.
    Can anyone please help ?

    Look like you are using expert mode VO, in that case this is expected behavior. You can turn OFF the View link consistency for this specific VO by calling setAssociationConsistent(false); in the ViewObjectImpl::create();
    Another possibility is to add th custom filtering in the overridden ViewObjectImpl::rowQualifies(ViewRowImpl vr) - http://jobinesh.blogspot.com/2011/03/overriding-rowqualifies-for-in-memory.html

  • Can I use View Link in ADF Creation Forms Jdev 10.1.3

    Hi...
    I created a view link of two tables. Then I created a ADF form with Master Object to show some informations.. and I created a ADF Creation form with the detail Object
    I'm trying to submit the informations added in the Detail forms.
    but no records are created in Database..
    Can I submit a creation form using detail object?
    Thanks

    I figured out "partially" the problem, I tried to overrid the create method, and for any reason the commit operation wasn´t working.
    I was trying to set a value for a proprety, but it did not work as a wish.
    My intention was.... when an user execute the form. one specific field brings a value.. however I cannot set default value. cause it´ll change sometimes.
    it´s something like this
    protected void create(AttributeList attributeList) {     
    super.create(attributeList);
    setMyProperty(new Number(0));
    do you know how can I figure out this problem?

  • Problems querying view link

    I have created a query page that uses a view link do a query. No rows are returned. However, their are several rows in both tables that are represented in the view link.
    Below is the code from the JSP.
    &lt;%@ page
    language="java"
    errorPage="errorpage.jsp"
    contentType="text/html;charset=windows-1252" %&gt;
    &lt;%@ page language="java" import = "oracle.jbo.html.*" %&gt;
    &lt;%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %&gt;
    &lt;%@ include file="ValidateCookie.inc" %&gt;
    &lt;html&gt;
    &lt;head&gt;
    &lt;META NAME="GENERATOR" CONTENT="Oracle JDeveloper"&gt;
    &lt;LINK REL=STYLESHEET TYPE="text/css" HREF="/webapp/css/bc4j.css"&gt;
    &lt;TITLE&gt;Query From&lt;/TITLE&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;jbo:ApplicationModule id="am"
    configname="XPA.XPAModule.XPAModuleLocal"
    releasemode="Stateful" /&gt;
    &lt;jbo:DataSource
    id="ds"
    appid="am"
    viewobject="View_Cu"
    rangesize='&lt;%=XPA.XPAConstants.XPA_RANGE_SIZE%&gt;'/&gt;
    &lt;%--jbo:DataSource
    id="ds"
    appid="am"
    viewobject="LV_Cu_Contact"
    rangesize='&lt;%=XPA.XPAConstants.XPA_RANGE_SIZE%&gt;'/--%&gt;
    &lt;jbo:DataHandler appid="am"
    relativeUrlPath = "/components/XPADataHandlerComponent.jsp" /&gt;
    &lt;%
    String params = HtmlServices.getRequestParameter(pageContext,"jboEvent");
    params= params + "xx";
    if (params.equalsIgnoreCase("nullxx")) {
    %&gt;
    &lt;%-- Roll back any un-finished transactions. We need to do this in any
    %-- first level jsp to negate any uncommited transactions
    --%&gt;
    &lt;jbo:RollBack appid="am" /&gt;
    &lt;h3&gt;Company Search Page&lt;/h3&gt;
    &lt;a href="queryhelp.html"&gt;Search Help&lt;/a&gt;
    &lt;jbo:DataQuery datasource="ds"
    relativeUrlPath="/components/XPADataQueryComponent.jsp" /&gt;
    &lt;%
    %&gt;
    &lt;jbo:OnEvent list="Search, FirstSet, NextSet, PreviousSet, LastSet" &gt;
    &lt;h3&gt;Query Results&lt;/h3&gt;
    &lt;table border="0"&gt;
    &lt;tr&gt;
    &lt;td ALIGN="left"&gt;
    &lt;jbo:DataScroller datasource="ds" /&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td&gt;
    &lt;jbo:DataTable datasource="ds"
    relativeUrlPath="Step1DataTableComponent.jsp"
    edittarget="Step1Q_Edit.jsp" /&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;/jbo:OnEvent&gt;
    &lt;/body&gt;
    &lt;jbo:ReleasePageResources /&gt;
    &lt;/html&gt;
    Any ideas on how to fix this problem?

    Has the view object been execute? Try using the RefreshDataSource tag.

  • Custom VO: checking view link params

    Hi!
    I am writing a custom ViewObjectImpl to retrieve data from webservices.
    I am now implementing master-detail functionality via the view links.
    I know that in the executeQueryForCollection the query will get executed, and that all named parameters will be passed using a Object[]. When the query is executed via a view link, a Bind_Attribute parameter will be passed.
    Only, how can I dynamically map this name on the corresponding view object attribute? The name of the bind parameter contains the attribute name of the source view object, but I need the name of the destination view object attribute.
    I tried looking into the results of getViewLinks(), but I do not find any methods that can return me the view link definition and corresponding attributes.
    Is this possible?
    Jeroen van Veldhuizen

    Hi,
    I had also the same problem, I needed to query two tables which are in a Master-Detail relationship, the only way to do this is to write a new bean, extendind the FindForm bean to make a query like this:
    select * from mastertable where condition4mt and pk_mastertable in ( select fk_pk_mastertable from detailtable where condition4dt)
    So after this you get a pointer in the master table, but your condition to the detailtable is not considered from the ViewCurrentRecord Bean. I didn't go further to extend the ViewcurrentRecord bean, because this solved my problem, besides I think it would be also very difficult.
    JDevTEAM !!! are you planing to solve this king of problem ???
    I know that I can force the VO.setWhereClause() to force some condition on the detail, but are you planing to extend the ViewCurrentRecord bean to have also a master-detail view with a restriction also on the detail table ???
    TIA,
    Seb.

  • How fast is findByKey and View Links

    Hello,
    I'm developing an application in which I'll have two very populated View Objects (one with ~1000 and other with ~13000). My code will pick up one row in the first view object and it will search the related rows in the second view object.
    I have some questions about this operation:
    1. Should I implement it by calling findByKey in the second View Object or View Links between them?
    2. How fast is findBykey? O(n) or something better? And about the View Link, does it execute a SQL query or does it solve by comparison between Java objects?
    Thanks,
    Eduardo

    This reply from the community seems to say yes:
    Ethernet = 1 Gbps
    Wireless G, Wireless N (2.4 GHz) = 130 Mbps
    Wireless N (5 GHz) = 300 Mbps
    Wireless "g" is 54 Mbps, not 130 Mbps
    This article from Gizmodo seems to say no:
    http://gizmodo.com/5921456/apple-airport-express-2012-lightning-review-probably- the-best-router-ever
    The article never even mentioned what type of download speed or plan was used, so the numbers are meaningless.
    The AirPort Express has a 100 Mbps Ethernet WAN port, which would connect to a modem. Your download speed will depend on the Internet service plan that you have with your provider.
    If you really do have a 100 Mbps download plan with your provider, you could probably expect about 85 Mbps because some speed is always lost in the  routing process.
    What is the speed of your plan with your ISP?

  • View links in oracle ADF/query featching from Database

    Please any one help for this query
    I have two tables Emp, Dept
    I have query like this select * from Emp e, Dept d where e.deptno=d.deptno
    Query is fetching like this
    Empno Ename job Salary Comm deptno deptno dname      Loc
    15 i1     support     50000     11     5     5     IT          sss
    15 i1     support     50000     11     3     3     Account     sss
    16 i2     support     8000     10     5     5     IT          sss
    16 i2     support     8000     10     3     3     Account     sss
    16 i2     support     8000     10     3     3     Software      sss
    16 i2     support     8000     10     4     4     Operation      sss
    Query is fetching 6 rows.
    but my requirement is what ever records fetching from database with same employee number is one record that is same employee number dept names grouped I will show it as one record how to fetch records from data base.
    Here is the example (My Requirement):
    This is first row:
    Empno Ename job Salary Comm
    15 i1     support 50000     11
    Deptno dname      Loc
    5     IT          sss
    3     Account     sss
    This is second row:
    Empno ename job Salary Comm
    16 i2     support     8000     10
    Deptno dname      Loc
    5     IT     sss
    3     Account     sss
    2     Software sss
    4     Operation sss
    i am useing oracle ADF if any possibility in view links either i get from the query as i mentioned.
    plz any one can help
    thanks

    Please any one help for this query
    I have two tables Emp, Dept
    I have query like this select * from Emp e, Dept d where e.deptno=d.deptno
    Query is fetching like this
    Empno Ename job Salary Comm deptno deptno dname      Loc
    15 i1     support     50000     11     5     5     IT          sss
    15 i1     support     50000     11     3     3     Account     sss
    16 i2     support     8000     10     5     5     IT          sss
    16 i2     support     8000     10     3     3     Account     sss
    16 i2     support     8000     10     3     3     Software      sss
    16 i2     support     8000     10     4     4     Operation      sss
    Query is fetching 6 rows.
    but my requirement is what ever records fetching from database with same employee number is one record that is same employee number dept names grouped I will show it as one record how to fetch records from data base.
    Here is the example (My Requirement):
    This is first row:
    Empno Ename job Salary Comm
    15 i1     support 50000     11
    Deptno dname      Loc
    5     IT          sss
    3     Account     sss
    This is second row:
    Empno ename job Salary Comm
    16 i2     support     8000     10
    Deptno dname      Loc
    5     IT     sss
    3     Account     sss
    2     Software sss
    4     Operation sss
    i am useing oracle ADF if any possibility in view links either i get from the query as i mentioned.
    plz any one can help
    thanks

  • View Link between two query views

    Hi is it possible to create a view link between two views having the where clause bind variables.
    How you set the bind variables at the run time for the View objects. It is giving hard time for me to use the Master view in the XmlData bean to generate the Xml document.
    I am able to set the Master views bind variables, but for view link destination view
    where clause bind variables are not able to set ( link object link condition bind variables are binded run time but the views where chause bind variables of destination view are unable to setand bind)
    Thanks
    null

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • IBM cognos TM1 Executive viewer is not working on direct Access

    Hi,
    We are implementing DirectAccess in our environment and testing applications in test lab. It has been observed that executive viewer is not working on Direct Access but working fine over VPN mobile checkpoint. When DA client click on open view button it
    gives error
    " Additional information:
    Unable to connect to server XYZ.com using TCP-IP port 7112. Please make sure that IBM cognos TM1 executive viewer server is started and the port is not blocked by any proxy server or firewall"
    but from client telnet is working on port 7112. All ports between DA server and application server are open 3389,7112 and 80.
    Also select database option is grayed out and user is unable to select the database. When switching to VPN its working fine.
    We are using Executive viewer 9.4. 
    Any help would be appreciated.

    It sounds like this program may not be capable of talking over IPv6, which DirectAccess uses. First make sure that when you connect it is trying to talk to a hostname and not an IPv4 address. If your program is calling for "192.168.1.100" - this is never
    going to work over DirectAccess. It must call for a name that DirectAccess can resolve to an IPv6 address for communication over DA.
    If you confirm it is talking to a name, and then if you confirm that you can do other things to that same name (can you RDP into the server for example?), then that confirms that DirectAccess traffic flow is working to that name/server.
    If RDP works but the application still doesn't work, then the application is probably incapable of IPv6. You can either ask IBM if they have a newer version that does talk IPv6, otherwise I have a utility available that can intercept packets from these kinds
    of problematic applications and flip the packets into IPv6 on the DA client. Let me know if you need any further information on that: http://www.ivonetworks.com/news/2013/05/ivo-networks-announces-app46-for-directaccess/

  • [SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table

    Hi all,
    I've got a method that creates 3 dynamic viewobjects using this:
                ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");
                Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);
                Level1ViewDef.addViewAttribute("SetOfBooksId","SET_OF_BOOKS_ID",Number.class);
                Level1ViewDef.addViewAttribute("CodeCombinationId","CODE_COMBINATION_ID",Number.class);
                Level1ViewDef.addViewAttribute("Level1","LEVEL1",String.class);
                Level1ViewDef.addViewAttribute("AccountType","ACCOUNT_TYPE",String.class);
                Level1ViewDef.addViewAttribute("PeriodYear","PERIOD_YEAR",Number.class);
                Level1ViewDef.addViewAttribute("PeriodNum","PERIOD_NUM",Number.class);
                Level1ViewDef.addViewAttribute("PeriodName","PERIOD_NAME",String.class);
                Level1ViewDef.addViewAttribute("PtdActual","PTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("YtdActual","YTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("LtdActual","LTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("BudgetName","BUDGET_NAME",String.class);
                Level1ViewDef.addViewAttribute("BudgetVersionId","BUDGET_VERSION_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdBudget","PTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("YtdBudget","YTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("LtdBudget","LTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("EncumbranceType","ENCUMBRANCE_TYPE",String.class);
                Level1ViewDef.addViewAttribute("EncumbranceTypeId","ENCUMBRANCE_TYPE_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdCommitment","PTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("YtdCommitment","YTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("LtdCommitment","LTD_COMMITMENT",Number.class);
                Level1ViewDef.setQuery(sql_level1);
                Level1ViewDef.setFullSql(true);
                Level1ViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
                Level1ViewDef.resolveDefObject();
                Level1ViewDef.registerDefObject();
                ViewObject vo1 = createViewObject("Level1View",Level1ViewDef);I can create the view objects fine and create a single viewlink between two of them, however i'm getting problems with 2 view links.
    This is how I'm creating a view link:
                ViewLink Level2Level1FKLink = createViewLinkBetweenViewObjects("Level2Level1FKLink1",
                                                        "Level2View",
                                                        vo1,
                                                        new AttributeDef[]{
                                                          vo1.findAttributeDef("Level1")
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level1")
                                                        "LEVEL1 = :Bind_Level1");
                ViewLink Level3Level2FKLink = createViewLinkBetweenViewObjects("Level3Level2FKLink1",
                                                        "Level3View",
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level2")
                                                        vo3,
                                                        new AttributeDef[]{
                                                          vo3.findAttributeDef("Level2")
                                                        "LEVEL2 = :Bind_Level2");I can get the data to display on an adf tree table if i'm only using a single view link, but when i try and implement 2 view link (for 3 levels on the adf tree table) i'm getting problems displaying the data.
    I'm getting the following error:
    Aug 10, 2007 2:44:39 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    oracle.jbo.NoDefException: JBO-25058: Definition Level3View of type Attribute not found in Level2View_Level2Level1FKLink1_Level2ViewThe thing is, Level3View isn't in the Level2Level1FKLink viewlink.
    I've been reading about something similar here
    BC4J Master-Detail-Detail
    but I am still unsure of what the problem is.
    Thanks in advance.

    I found the answer here:
    http://radio.weblogs.com/0118231/stories/2004/06/10/correctlyImplementingMultilevelDynamicMasterDetail.html

Maybe you are looking for