Monday, September 25, 2017

af:Convert Number Limit to 1 Decimal point ADF

Limit to 1 decimal Point  -

Refresh adf table on tab out of a row ADF

Update the Iterator(Executables) respect to the table to refresh on prepareModel




http://adfpractice-fedor.blogspot.com/2015/04/understanding-iterator-binding-refresh.html





Friday, September 22, 2017

Navigate to next row on tab af table adf

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

2. 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));

    }