Setting Invalid Fields for the UI in ADF BC Groovy by Andrejus Baranovskis

Posted: July 23, 2017 in JDeveloper & ADF
Tags: , , , , , , ,
image

What if you have entity level validation rule and want to attach validation error message to specific field. By default this is not possible – all entity level validation error messages are displayed in the popup and are not attached to the fields (differently than attribute level validation rule messages).
Apparently there is a way to achieve such requirement with Groovy expression, this can be executed from entity level validation – adf.error.addAttribute(‘Salary’). In addAttribute you need to provide attribute name which will be assigned with the error. Complete expression for entity validator:

Result displayed on UI – validation error message is assigned to the field, which was changed: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic,WebLogic Community,Oracle,OPN,Jürgen Kress

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s