Monday, August 22, 2011

ADF BC : Making specific row read only for critical records.

 

As I have already shown you in previous blog how to make salary column read only based on role condition.

Now let me write a logic to make specific row read only based on it importance.

Generate Impl class for Employee Entity Object.

Override isAttributeUpdateable method.

image

I checked if job is Vice President then do not allow user to edit record.

Run the page and you will see that row with JobId AD_VP is read only.

image

If you notice this time I wrote logic in EntityImpl.java instead of VORowImpl.java. Actually , we can override isAttributeUpdateable method in both Impl. Please refer to documentation for further reference.

No comments:

Post a Comment