Awesome post by sanjeev chauhan
ADF: Move using Tab key in AF:Table
http://sanjeev-technology.blogspot.com/2015/08/adf-move-using-tab-key-in-aftable.html2. Change current-row of table before doing any processing: Now in bean method write a new mothod makeRowCurrent as shown below
private void makeRowCurrent(ValueChangeEvent valueChangeEvent){
oracle.jbo.domain.Number employeeId = (oracle.jbo.domain.Number)valueChangeEvent.getComponent().getAttributes().get("rowKey");
JUCtrlHierBinding adfModel = (JUCtrlHierBinding)((CollectionModel)getEmployeeTable().getValue()).getWrappedData();
DCIteratorBinding dciter = adfModel.getDCIteratorBinding();
NavigatableRowIterator nav=dciter.getNavigatableRowIterator();
Object[] objKey = new Object[1];
objKey[0] = employeeId;
Key key = new Key(objKey);
nav.setCurrentRow(nav.getRow(key));
}
No comments:
Post a Comment