Create View Link Definitions - Problem

Hi,
I was trying to define a relationship between two view objects using the view link icon, but I always get this error messages:
BME-99004:A java runtime exception has occurred,
BME-02038:Exception thrown during validation.
Can anyone help me? It's very important!!
Thanks
null

Ok, I'm not Lisa but do you still want my help? ;o)
We need to go back to basics for this and also provide more information.
I assume you are using ADF Business Compoments,
What version - I'll assume 10.1.3
How are you creating the link; what are you actually doing when yuo get this error - are you running.
Here is what I would do - create two default EOs EMP and DEPT and create two default VOs on them, drag the VOs onto a Business Components diagram and add a link to it - does that work - if so, what is different. If that doesn't work then we have something to go on.
Regards
Grant Ronald
Oracle Product Management

Similar Messages

  • Create view link programatically

    Hi all,
    I am working on this weird requirement.
    Basically, I have to create a detail table on a search resullt table. The search result is seeded search, for Item Advance search in Oracle PIM module which is not based upon a VO. The search result table is dynamically built at run time in the EgoItemSearchHelper class and that's where they build the search result VO (EgoItemSearchResultsVO).
    Now, I need to access this VO in the controller class, and create a view link programatically between details table VO and this VO. The problem is since I do not have Impl class for the EgoItemSearchResultsVO, how do I accees the column that is the key attribute. Second I do not know how to create view link between the two VOs programatically.
    Please help it's urgent.
    Thanks

    Pratap, My problem is the seeded VO is in seeded AM and my details VO will be in my custom AM, I don't know if we can have a view link between View objects that are in different AMs.
    To bypass that problem, I tried to create a VO in the seeded AM programatically and then created a view link. Now since the AM is seeded, and I am adding my details VO to this AM programatically, I thought of creating a table also programatically on the detais VO.
    In the end it does not work, I end up getting a show button on the main table, but when I click I get an error (Cannot find <null> attribute in the EOGITEMSEARCHRESULTVO) which is the seeded VO class. Unfortunately there is no boolean variable on the dynamic seeded VO, so don't know what to put in oatablebean.setDetailViewAttributeName("") method;
    Any clues on this, appreciate all responses from the forum gurus.
    ViewObject voEmp = oaapplicationmodule.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
    ViewObject voEmp = am.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
    AttributeDef[] prjLinkAttrs = new AttributeDef[]{oaapplicationmodule.findViewObject("EgoItemSearchResultsVO").findAttributeDef("INVENTORY_ITEM_ID_B")};
    System.out.println("definition for attr = "+ prjLinkAttrs[0]);
    AttributeDef[] taskLinkAttrs = new AttributeDef[]{voEmp.findAttributeDef("InvId") };
    ViewLink vl = am.createViewLinkBetweenViewObjects("MyLink3",
    "DetailInv", // accessor name--more on this below
    am.findViewObject("EgoItemSearchResultsVO"), // master
    prjLinkAttrs, // department attributes
    voEmp, // detail
    taskLinkAttrs, // employee attributes
    null); // assoc clause
    System.out.println("view link =" + vl.getName());
    OATableBean tb = (OATableBean)createWebBean(oapagecontext,TABLE_BEAN,null,"table");
    tb.setViewUsageName("MyEmp");
    OAMessageStyledTextBean beans = (OAMessageStyledTextBean)createWebBean(oapagecontext,MESSAGE_STYLED_TEXT_BEAN,OAWebBeanConstants.VARCHAR2_DATATYPE,"number");
    beans.setPrompt("column1");
    beans.setViewUsageName("MyEmp");
    beans.setViewAttributeName("InvId");
    tb.addIndexedChild(beans);
    oatablebean.setDetail((OAWebBean)tb);
    oatablebean.setDetailViewAttributeName("SelectFlag"); // I just tried this, SelectFlag is not a boolean attribute though, is there a way to create a boolean attribute programatically for seeded VO EGOITEMSEARCHRESULTVO and set it here, will it help
    oatablebean.setAllDetailsEnabled(true);

  • How to get the view link definition from the view link accessor

    Hi,
    I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
    Thanks!

    Hi,
    you should get this through
    ViewObject vo = this.findViewObject("LocationsView1");
    int indx = vo.getAttributeIndexOf("DepartmentsView");
    ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
    ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
    Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
    Frank

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

  • Unable to create view links ....

    Hi,
    when i try to create a view link on my custom VO's ..im getting the following error:Ia m not using any standard VO's but still iam facing this issue
    Error occurred trying to activate the wizard pageView objects.
    Unable to find referenced object.
    Object=oracle.apps.ego.common.server.EgoChangeOrderCreationVO
    Owner=xxcus.apps.xo2c.sample.server.EgoChangeOrderCreationVOEx
    Exception:oracle.jbo.dt.objects.jboReferenceException
    I checked for these files on both the server and my local jdev.
    only the PosShipmentsCustomVO.xml is present both on the server and my local jdev.the .class file is not there on the server.
    Any help is greatly appreciated.
    Thanks

    Hello,
    Check the developer's gude for the following:
    Developing Business components -->Creating and modifying View Objects, view Links, Application Modules -->Ways to create View Link instances in the code.
    Do let us know if you are still stuck some where.
    Pavan K

  • Create Partner Link dialog problem

    I'm using the Create Partner Link dialog, called by right-clicking in the a bpel diagram view. First I select the wsdl file. At this point it askes me if I want to make a local copy of the wsdl file (warning me that it won't be referenceable at runtime unless I do). I answer no.
    Then I select the link type, select MyRole, and leave PartnerRole unspecified (it's a synchronous invokation). When I click "OK" in the dialog nothing happens - the dialog doesn't close and there is no error message produced. I can cancel out of the dialog and the project appears unchanged, although the bpel file in the project shows in italics to indicate that it is changed.
    Here's the wsdl file I'm referencing in the dialog. I'm guessing that the Create Partner Link dialog should be printing an error message to tell me what is doesn't like but no such message appears. Is this a bug?
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="prefixer"
    targetNamespace="http://xmlns.oracle.com/prefixer"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:client="http://xmlns.oracle.com/prefixer"
    >
         <types>
              <schema attributeFormDefault="qualified"
                   elementFormDefault="qualified"
                   targetNamespace="http://xmlns.oracle.com/prefixer"
                   xmlns="http://www.w3.org/2001/XMLSchema">
                   <element name="beforePrefixT">
                        <complexType>
                             <sequence>
                                  <element name="input" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
                   <element name="afterPrefixT">
                        <complexType>
                             <sequence>
                                  <element name="output" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
              </schema>
         </types>
         <message name="prefixRequestM">
              <part name="input" element="client:beforePrefixT"/>
         </message>
         <message name="prefixResponseM">
              <part name="output" element="client:afterPrefixT"/>
         </message>
         <portType name="prefixerPT">
              <operation name="doPrefix">
                   <input message="client:prefixRequestM"/>
                   <output message="client:prefixResponseM"/>
              </operation>
         </portType>
         <plnk:partnerLinkType name="prefixer">
              <plnk:role name="prefixRequester">
                   <plnk:portType name="client:doPrefix"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </definitions>

    Bret
    I could be wrong, but on a sync call your destination WSDL should be setup as the provider and not requester. Ten the PartnerRole should be set and not MyRole.
    Pete

  • JDeveloper error creating view link

    I was attempting to create a view link for Chapter 11 of "Oracle JDeveloper 10g Handbook" and received the following error (restarting JDeveloper did not help):
    Message
    BME-99004: A Java runtime exception has occurred.
    Cause
    This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.bm.uml.validation.AssociationValidation.validateAssociationEnds(AssociationValidation.java:315)
         at oracle.bm.uml.validation.AssociationValidation.validate(AssociationValidation.java:108)
         at oracle.jbo.dt.modeler.validation.BC4JAssociationValidation.validate(BC4JAssociationValidation.java:35)
         at oracle.bm.data.validation.ValidationEngine.validate(ValidationEngine.java:201)
         at oracle.bm.data.cacheimpl.TransactionImpl.validate(TransactionImpl.java:1713)
         at oracle.bm.data.cacheimpl.ProjectCacheImpl.closeTransaction(ProjectCacheImpl.java:5055)
         at oracle.bm.common.registry.CRNWayEdge.createEdge(CRNWayEdge.java:208)
         at oracle.bm.diagrammer.track.CreateRegisteredShapeTracker.doCreateEdge(CreateRegisteredShapeTracker.java:537)
         at oracle.bm.diagrammer.track.CreateRegisteredShapeTracker.mav$doCreateEdge(CreateRegisteredShapeTracker.java:111)
         at oracle.bm.diagrammer.track.CreateRegisteredShapeTracker$6.performAction(CreateRegisteredShapeTracker.java:336)
         at oracle.bm.diagrammer.LockMonitor.performLockedAction(LockMonitor.java:64)
         at oracle.bm.diagrammer.BaseDiagram.performDiagramLockedAction(BaseDiagram.java:2437)
         at oracle.bm.diagrammer.track.CreateRegisteredShapeTracker.processEvent(CreateRegisteredShapeTracker.java:279)
         at oracle.bm.diagrammer.track.TrackerStack.processEvent(TrackerStack.java:403)
         at oracle.bm.diagrammer.track.TrackerStack.pop(TrackerStack.java:198)
         at oracle.bm.diagrammer.track.TrackerStack.safePop(TrackerStack.java:320)
         at oracle.bm.diagrammer.track.CreateRegisteredShapeTracker.mousePressed(CreateRegisteredShapeTracker.java:1022)
         at oracle.bm.diagrammer.track.CreateRegisteredShapeTracker.mousePressed(CreateRegisteredShapeTracker.java:819)
         at oracle.bm.diagrammer.track.ModularTracker.processEvent(ModularTracker.java:191)
         at oracle.bm.diagrammer.track.CreateRegisteredShapeTracker.processEvent(CreateRegisteredShapeTracker.java:230)
         at oracle.bm.diagrammer.track.TrackerStack.processEvent(TrackerStack.java:389)
         at oracle.bm.diagrammer.BaseDiagramView$53.processEvent(BaseDiagramView.java:719)
         at oracle.bm.diagrammer.PageView$PageViewPanel.fireEvent(PageView.java:2904)
         at oracle.bm.diagrammer.PageView$PageViewPanel.processEvent(PageView.java:3090)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Action
    If further errors occur, you should restart the application.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle support, giving the information from this message.
    Message
    BME-02038: Exception thrown during validation
    Cause
    Action
    ________________________________________________________________________________

    Here is the view links code ..
    Project to task and task to subtask is fine .......... form subtaskvo i want to perform recursion ...
    thats what iam not getting ...
    public void createViewLink
    (OADBTransaction dbTransaction, OAViewObject obj,OAViewObject obj1
    ,OAViewObject obj2,OAViewObject obj3) {
    AttributeDef[] prjLinkAttrs = new AttributeDef[] { obj.findAttributeDef("ProjectId") };
    AttributeDef[] taskLinkAttrs = new AttributeDef[] { obj1.findAttributeDef("ProjectId") };
    ViewLink vl = createViewLinkBetweenViewObjects("TestPrjToTestTasksVL","TestPrjToTasksAcc",
    obj,prjLinkAttrs,obj1,taskLinkAttrs,null);
    Row firstDept = obj.first();
    RowSetIterator empsInDeptRowSet1 = (RowSetIterator)firstDept.getAttribute("TestPrjToTasksAcc");
    ViewObject viewObjectForAccessorRowSet = empsInDeptRowSet1.getRowSet().getViewObject();
    AttributeDef[] taskAttrs = new AttributeDef[] { obj1.findAttributeDef("TaskId") };
    AttributeDef[] parentTaskAttrs = new AttributeDef[] { obj2.findAttributeDef("ParentTaskId") };
    ViewLink vl1 = createViewLinkBetweenViewObjects("TaskToTestTasksVL","TaskToTasksAcc",
    viewObjectForAccessorRowSet,taskAttrs,obj2,parentTaskAttrs,null);
    //This link is not working
    AttributeDef[] taskAttrs2 = new AttributeDef[] { obj2.findAttributeDef("TaskId") };
    AttributeDef[] parentTaskAttrs2 = new AttributeDef[] { obj3.findAttributeDef("ParentTaskId") };
    ViewLink vl2 = createViewLinkBetweenViewObjects("TaskToTestTasksVL2","TaskToTasksAcc2",
    obj2 ,taskAttrs2,obj3 ,parentTaskAttrs2,null);
    }

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

  • Is it possible to create view link on programatic VOs

    I tried creating a view link between 2 programatic VOs but did not get a clean way to get the where clause.
    It appears that the where clause has to be dependent on the EOs which does not exist in this case.
    On creating the view link,i need the following where clause:
    VO1.col1 = VO2.col1 ( i.e. :Bind_col1 = VO2.col2)
    Is this possible ? The query getting built here is showing up as null bind variable i.e. :Bind_col1 is null
    Please suggest how to get over this issue.

    How/where do you want to accomplish it?
    Within the document? Using Acrobat? Using another application?
    Using Acrobat within the document would be possible using Acrobat JavaScript. You can access the annotation objects of your document, and you then can evaluate the properties of each of these objects. Have a closer look at the Annotation Object section in the Acrobat JavaScript documentation.
    You will look for the contents property, and evaluate its content. When you have found something looking like a URL, you can create a link (using the rect property of the annotation), and you have what you want; you might then think to destroy the annotation, as it may overlay the link.
    Hope this can help.
    Max Wyss.

  • How to create view link?

    Hi,
    Would somebody please tell me the brief steps for creating a view link.

    OAF ... Oracle Applications Framework? As in 'a technology or product question'? (See the description of this forum for reference to why I ask.)
    Please note that Oracle has over 100 products and technologies. When asking questions about the product or technology, it is important to either ask in context (the correct forum) or make sure you give lots of detail to alloow the readers to actually be able to identify the product and the platform.

  • Create view link between two view objects (from programmatic data source)

    Hi Experts,
    Can we create a link between two view objects (they are created from programmatic datasource ; not from either entity or sql query). If yes how to create the link; ( i mean the like attributes?)
    I would also like to drag and drop that in my page so that i can see as top master form and the below child table. Assume in my program i will be only have one master object and many child objects.
    Any hits or idea pls.
    -t

    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.

  • View link accessor passes a ViewRowSetImpl

    9.0.5.1
    If I add a View link between a SQL only view object (A) and a View object (B) based on an entity object (cardinality 1 to 1) and request accessor methods are added to the view object (B) and the corresponding entity
    I get an accessor in view object (B)
    oracle.jbo.Row getXXXX - which seems okay
    I get in the entity object
    ViewRowImpl getXXXX - which also seems okay
    However when getXXXX is called in the entity object a ViewRowSetImpl object is being passed back and so the cast fails.
    I've checked the data and there is definitely only a one to one relationship between the data.
    Anyone have any ideas what could be wrong?

    I have the same problem with cardinality * to 0..1.
    The created view link accessor return a ViewRowImpl but at runtime it returns a ViewRowsetImpl and I get a ClassCastException
    I used following workaround:
    Define an association and read from the association accessor instead of the View Link accessor.
    ADF 10.1.2
    Thanks
    Frederic

  • View link between VO from two application modules

    Is it possible to create view link between VOs from 2 different Application modules?

    Here is what it says:
    SymptomsYou have an ADF BC (BC4J) project and you are getting the following error:
    oracle.jbo.domain.Number; local class incompatibleA more detailed error looks similar to:
    oracle.jbo.domain.Number; local class incompatible: stream classdesc
    serialVersionUID = -7171468674200794918, local class serialVersionUID =
    -6507359405709672486
    CauseThis problem is caused by either that:
    You have inadvertently mixed two mutually exclusive domain libraries like "BC4J Generic Domains" (bc4jdomgnrc.jar) and "BC4J Oracle Domains" (bc4jdomorcl.jar).
    or
    You have added the "BC4J Datum" library (bc4jdatum.jar) to your middle-tier class path, and are trying to use a JDBC driver different from the one that ships with JDeveloper 10g in the box.
    The BC4J Generic Domains and the BC4J Oracle Domains are never meant to be used in the same application classpath. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    The BC4J Datum library is designed for use in a thin-client Classpath that is remotely accessing an ADF Business Components middle tier deployed as an EJB Session bean. It contains only the domain classes (typically jar'ed up as part of the whole Oracle JDBC Driver JAR) without having to have the rest of the JDBC Driver JAR on the thin client. SolutionPlease check if any of the above suggested scenarios is applicable to your application.
    If you have the BC4J Generic Domains and the BC4J Oracle Domains in the same project despite that they are never meant to be used in the same application classpath you will get this error. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    Goto the Project Properties for you project.
    Select Profiles -> <Profile Name> -> Libraries
    Check in the Selected list (to the right) if you have both BC4J Generic Domains and the BC4J Oracle Domains there. If so, remove the one not appropriate for your project.

  • View Link sql window is non editable

    Hi All,
    I am creating view link between two views using wizard, but when I reach view link sql window it is blank and non editable. any ideas on this?
    Thanks in advance.
    Hitesh

    Hitesh,
    This a very generic case and happens when the source VO join attribute and destination VO join attribute are not of same type, i.e. data type and data length. Make sure that is happening in your case, this will solve your problem.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

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

Maybe you are looking for

  • Video import from AE to PP blurry and bad quality video.

    Hi all, Im having a weird problem with AE cs6 and Premiere pro cs6. Whenever i import an AE to Premiere Pro, the quality becomes bad and blurry. When the project is rendered from AE to a video project (like QT) the quality is great. The videos I am w

  • Smartform output in word format

    dear all i have created a smartform which needs to send to external mail ID.s as an .doc attachment. how to do this.  even i have no basic idea also.  kindly help out. regards

  • Set value of variable in one bean from another bean

    Using JDeveloper 11.1.1.4, I thought this would be simple to do, but I haven't been able to figure out the correct syntax and am just learning java. In my view controller I have one bean set as pageflow scope, and another bean set as a request scope.

  • Create table query taking too long..

    Hello experts... I am taking the backup of table A which consist of 135 million records... for this am using below query.. create table tableA_bkup as select * from tableA; it is taking more than hour..still running.... is there any other way to quer

  • Getting error message Thru BAPI: BAPI_INCOMINGINVOICE_CREATE

    Hi All, Could anyone please investigate into this error and give me the possible answer. We're using ECC 6.0 Getting error while doing Invoice Posting thru BAPI/Function Module: BAPI_INCOMINGINVOICE_CREATE Error Messages 1. M8 376: Enter goods receip