By Juergenkress-Oracle on May 06, 2016
use case would not be complete without validation logic implementation.
Oracle JET allows to implement standard and custom validators on the
client. Probably most of the simple to average complexity logic will be
implemented in Oracle JET. Complex use cases can be handled in ADF BC
validation rules, data will be validated through REST calls. When
validation fails in ADF BC, error message is propagated through REST
back to Oracle JET client, where we can parse it and attach to the UI
You can watch demo video, it shows how it works. I'm trying to update a row with invalid data, rules are executed in ADF BC and validation messages are displayed next to the UI fields in JET:
are three rules defined in ADF BC. It might be tricky to map UI field
with error message. This is easy in case of PATCH method, ADF BC REST
returns failed attribute name together with the message. This doesn't
work in the same way with POST method, when new row is created. For this
reason, I have introduced custom indicator into each validation message
*AttributeName*. I'm parsing this value in JET, to understand which UI
field should be marked as incorrect.
Rule 1. Unique Key validation rule for Email attribute.
Rule 2. Hire Date validation rule, it should not be in the future. Read the complete article here.
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.