The base product provides a form rule that performs validation based on form line configuration. The rule Form Line Configuration Validation (C1-ChkReqSectionsLines) checks for form sections, groups and lines that are marked as required. It also checks for valid values in form lines configured as foreign key references, lookups or extendable lookups. However, there are many business rules with validation that is conditional based on the values of other form lines in the form. The base product provides a Form Rule BO that is designed handle a large range of conditional validation, C1-CondElementValidation.
The Conditional Element Validation BO allows a business user to define a series of conditions that apply to sections and lines of a form. The conditions are defined as basic mathematical expressions that have a result of true or false. Your implementation should consider using this rule BO when defining a rule that validates a form line value in relation to other supporting lines on the form.
The following topics highlight some of the available features for conditional expressions. Other mathematical operators and functions are supported but these are not normally used for calculations that are common to forms validation.
Variable identifiers must be a character between a-z except x. Variable x is always used to refer to the form line that this rule applies to. Variable identifiers are case sensitive.
The following types of expression operators are supported.
x = a + b + c where the value of x should equal the sum of the values a, b and c
x = a * r where r is a rate factor variable
x > a where the value of x should be greater than the value of a
x != 0 where x must have a non-zero value
x = (a + b) / c where the value of x should be equal to the result of adding values a and b then dividing by the value of c
The following examples show the use of the most common supported functions:
The base product provides another form rule that performs conditional validation for Sections and Lines. The rule Check Conditionally Required Sections and Groups (C1-CheckCondReqdSectionGroup) checks whether or not a form section or group are required or must be empty based on a defined set of conditions. This rule can be used in conjunction with the Conditional Element Validation rule described above.
Copyright © 2007, 2016, Oracle and/or its affiliates. All rights reserved. Documentation build: 2.5.2016 10:21:45 [T1_1454696505000]