We can add validation at View , Model and business Services as wee need.
Sometimes we need to skip that validation and continue in executing the requested action.
Some developers in set immediate property to TRUE for UIcomponent but there is drawback of that property that it allows processing of UIcomponent to move to Apply Request Values phase of the life cycle.
We have another solution for skipping validation without moving up to Apply Request Values phase of the life cycle as illustrated below.
The solution is using skip validation property of page definition file.
open page definition file and choose root node and set skip validation property to true.
I will illustrate different value of skip validation property
a- skip validation = true
will bypass the ADF Model validation.the validation happens only when you commit the transaction.
b- skip validation = custom
at that case I will use customValidator from java bean to control the validation.
c- skip validation = skipDataControls
That means that it will skip data control level only.
d- skip validation = false
That it is the default value that doesn't allow skipping validationThanks
Mahmoud A. El-Sayed
Thanks Mahmoud that was really helpful
ReplyDeleteHichem
From Tunisia
Hello Mahmod,
ReplyDeleteDo you know how to change the skipValidation property programmatically?
Dear Mohammed,
DeleteYou ask good question.
You can use setSkipValidation method in DCBindingContainer class
Hi,
ReplyDeleteI was trying to implement this skipValidation property in my application. But somehow the property doesn't get saved. everytime i open the properties again after saving the property skipValidation gets set to default(false). Any idea where can i set it in the source code
Major thanks for the post.Really thank you! Will read on…
ReplyDeleteSAP ABAP training
SAP ABAP online training in hyderabad