How to Set current row of ADF table (View Object)

How to Set current row of ADF table (View Object)

Sometimes user need to set current row in ADF table through programming. There is an Operation available on all View Object Instance inside Data Control.



So I am describing steps how to achieve this.

  1. First Create Action Binding for “setCurrentRowWithKeyValue” operation.2


  2. After that create a method on ManagedBean to set Current Row.
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer binding =bindingctx.getCurrentBindingsEntry();OperationBinding opt =binding.getOperationBinding("setCurrentRowWithKeyValue");

    where “no” is primary key value of ViewObject which you want to set (for eg if View object have srno primary key attribute and value like 1,2,3,4 and you want to set value which have primary key value ” 3” so you can pass 3 in place of no).

About Manish Pandey

Manish is a Project Leader at Jagran Prakashan Ltd, focused on Jdeveloper Fusion Web Application(specifically Oracle ADF). He shares his knowledge through the OTN Jdev/ADF Forum. He has written more than 50 article about Oracle ADF and Jdeveloper.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.