Greetings !!
I would like to briefly explain about inserting a new row in a view object at a specified index.
Create a method like below in VOImpl, and invoke this method by passing 'Row' and index.
public void insertRow(EmpVORowImpl pRow,int pIndex)
{
int rangesize = getViewObject().getRangeSize();
getViewObject().setRangeSize(-1);
super.insertRowAtRangeIndex( pIndex , pRow);
getViewObject().setCurrentRow(pRow);
getViewObject().setRangeSize(rangesize);
}
I would like to briefly explain about inserting a new row in a view object at a specified index.
Create a method like below in VOImpl, and invoke this method by passing 'Row' and index.
public void insertRow(EmpVORowImpl pRow,int pIndex)
{
int rangesize = getViewObject().getRangeSize();
getViewObject().setRangeSize(-1);
super.insertRowAtRangeIndex( pIndex , pRow);
getViewObject().setCurrentRow(pRow);
getViewObject().setRangeSize(rangesize);
}
No comments:
Post a Comment