Monday 26 March 2018

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;
}

 

http://adftutorials.com/keyword/custom-error-message

 

No comments:

Post a Comment