Monday, March 17, 2014

How to fire a entity level validation on an attribute change in ADF BC?


by default JDeveloper allows you to select the attributes that trigger validation, so that validation execution happens only when one of the triggering attributes is dirty.In previous releases of JDeveloper, an entity-level validator would fire on an attribute whenever the entity as a whole was dirty.

Specifying the attributes which when changed trigger the entity level validation
  1. Create the entity level validation with the required rule type
  2. Go to the Validation execution tab to select the condition when the rule should be fired. This is the place where we should select if changes to a particular attribute should fire the current business rule. 
  3. This is shown in the below image 

  1. We can select more then one attribute in the triggering attributes dialog.
  2. Firing execution only when required makes your application more performant.

No comments:

Post a Comment