Removing a View Link Instance at Runtime

You can end a master-detail relationship between two view object instances in a data model by calling remove() on the view link instance joining them. The detail view object instance will become an independent instance.

To remove a view link instance at runtime:

  1. If you do not already have a variable containing the view link instance, create one by passing the view link instance name into ApplicationModule.findViewLink():

    ViewLink toBeRemoved = myAM.findViewLink("CustOrdLink");

  2. Call remove() on the view link:

    toBeRemoved.remove();


Ways to Change View Object Relationships at Runtime
About Oracle ADF View Links
About Oracle ADF View Objects
About Oracle ADF Application Modules
About View Object and View Link Instances

 

Copyright © 1997, 2004, Oracle. All rights reserved.