Validation rules in Sterling Business Center
You can review the information about different types of validation rules in Sterling™ Business Center.
In Sterling Business Center validation rules are defined in the sbc_validationrules.xml file. The sbc_validationrules.xml file is located at <INSTALL_DIR>\repository\eardata\sbc\war\WEB-INF\validationrules\sbc_validationrules.xml directory.
For validating the open form fields on the server side, the appcommon-openform-abstract-rule abstract validation rule is added in the sbc_validationrules.xml file. This validation rule implements the com.sterlingcommerce.appcommon.security.AppcommonOpenFormValidationRule Java™ class, which accepts the input value, checks for double encoding patterns, if any, and returns the input value.
By default, the open form fields must accept all the input values. Hence, the input values which is returned from the Java class will not be validated against any regular expression and will be saved without any changes.
For example, the validation rule for codelongdescription param value in the sbc_validationrules.xml file is defined as follows:
<ValidationRules>
<Rule id="sbc-description-param-value-regex-rule"
inputType="HTTPParameterValue" inputName="Description" extends="appcommon-openform-abstract-rule"/>
</ValidationRules>