Defining user interface validation inSterling Business Center

User interface validation in Sterling™ Business Center validates the data that is entered in the user interface. In the user interface, the validation completely works on the basis of data type mapping of an input field.

In Sterling Business Center, regular expressions for the data types are defined in the sbc_datatypeValidationRules.xml file. This XML file is located at <INSTALL_DIR>\repository\eardata\sbc\war\WEB-INF\datatypevalidationrules\sbc_datatypeValidationRules.xml directory. For user interface validation, the following context parameters are added in the sbc_datatypeValidationRules.xml file to load the validation rules and regular expressions:
<context-param>
<param-name>appcommon-openform-datatype-listparam-name>
<param-value>/WEB-INF/datatypevalidationrules/sbc_datatypeValidationRules.xmlparam-value>/WEB-INF/datatypevalidationrules/sbc_datatypeValidationRules.xml>
</param-value>
</context-param>