For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Hi Experts,
I am adding a field level validation trigger on one of my BO fields. This field is being populated using a Dropdown(Select One ) Component.
So the use case is if the user doesn't select any value in the dropdown and click on a submit button on the page(means the value is null for the field), it should throw the error I have defined in the validation trigger.
I have defined the trigger and added the condition however it's not triggering the validation.
Is the approach I am following is correct? When does the field level validation trigger on a page?
Thanks,
Nisheeth
Comment
Which trigger are you using?
Triggers only execute when you save data to the business object, so did you tie the submit button to a BO REST service that does POST or PATCH operation?
Be the first to rate this
|
Sign in to rate this
Be the first to rate this
|
Sign in to rate this
What is the code in your field validation?
IF you turn on BO logging - do you see any errors reported there?
(More on BO logging towards the end of this video - https://blogs.oracle.com/vbcs/debugging-and-troubleshooting-visual-builder-logic )
Be the first to rate this
|
Sign in to rate this
Be the first to rate this
|
Sign in to rate this
If you want to check that a field is not empty when you are inserting a new record then you'll want to use an object validator rather than a field validator.
(The field validation is not executed if you don't put a value in the field)
You can write an object validator that looks like this:
return(name)
where name is the field you want to check for being null. That's the right way to check for null in groovy.
Be the first to rate this
|
Sign in to rate this