Steps:
Hello, my name is John, and today we are discussing extending applications using Application Composer.
Step 1In this demo, I will show you how to create a validation rule that prevents users from entering a due date that is too far off in the future.
Step 2This is the second of four related demos that show you how to create a custom date field, display it in the UI, and create a validation rule to constrain the values users can enter.
Step 3In a related demo, we created a due date for activities performed to solve a customer issue in a trouble ticket.
Step 4In this demo, we prevent users from entering due dates later than one week after they create the trouble ticket.
Step 5To create the validation rule, we begin by selecting the Server Scripts link for the object.
Step 6And we click the Create button on the Validation Rules tab.
Click the Add a new validation rule... button.
Step 7We select the field we want to validate.
Click the button to the right of the Field Name field.
Step 8Click the Due list item.
Step 9We enter a rule name. No spaces permitted.
Enter the desired information into the Rule Name field. Enter
And a description.
Enter the desired information into the Description field. Enter
We will use the Application Composer palette to help us write the Groovy script.
Click the Keywords tab.
Step 12We can select keywords to insert.
Click the newValue list item.
Step 13Click the Insert button.
Step 14And operators.
Click the More menu.
Step 15Click the >= menu.
Step 16And we can insert functions as well.
Click the Functions tab.
Step 17Click the Date list item.
Step 18Click the today list item.
Step 19Click the Insert button.
Step 20Click in the Expression field.
Step 21Click the && button.
Step 22Click the Keywords tab.
Step 23Click the newValue list item.
Step 24Click the Insert button.
Step 25Click in the Expression field.
Step 26Click the More list.
Step 27Click the <= list item.
Step 28Click the Functions tab.
Step 29Click the Insert button.
Step 30Click in the Expression field.
Step 31Enter the desired information into the Expression field. Enter
Let's validate our script.
Click the Validate button.
Step 33The script parsed OK, so let's enter the error message.
Click in the Error Message field.
Step 34Enter the desired information into the Error Message field. Enter
Let's save and close and we are done.
Click the Save and Close button.
Step 36In this demo you learned how to create a field validation rule in Application Composer.
You can find additional learning resources in your Oracle Fusion Help application, as well as in the Oracle Learning Library, and at Oracle University. Thank you.
Step 37