ADF: How to check whether particular View Object’s data is modified or not
ADF: How to check whether particular View Object’s data is modified or not?
Create following method in ViewImpl class of your view object.
public boolean isdirty()
{
boolean flag=false;
DepartmentsViewRowImpl crow =(DepartmentsViewRowImpl)this.getCurrentRow();
EntityImpl entity= crow.getDepartments();
byte state=entity.getEntityState();
if(state!=entity.STATUS_UNMODIFIED)
{
flag=true;
}
return flag;
}
No comments:
Post a Comment