Steps needed to change the allowable characters in Sterling Business Center

Technote (FAQ)


Question

I am getting the following message in Sterling Business Center when trying to put a special character ($) in the short description of a item:

"Input does not conform to pattern: context=HTTP parameter value <FieldName>, pattern=^[A-Za-z0-9[-_\s.!,/+=()'\"@\\:;&\[\]\u007F-\uFFFF]]*$, Input=<your input>"



How do I edit the allowable characters in Sterling Business Center?

Cause

Sterling Business Center uses Java Regular Expressions to restrict the allowable characters for certain fields.

Answer

The following steps will allow the OOTB regular expressions to be edited.
1. Create a new file <INSTALLDIR>/repository/eardata/sbc/war/WEB-INF/regularexpressions/sbc_overide_regularexpressions.xml adding the following text:

<RegularExpressions>
<RegularExpression id="sc-parameter-value-pattern"
javaPattern="^[A-Za-z0-9[-_\s.!,/+=()'\&quot;@\\:;&amp;\$\[\]\u007F-\uFFFF]]*"
jsPattern="^[a-zA-Z0-9-_\s.!,/+=()'\&quot;@\\:;&amp;\$\[\]\u007F-\uFFFF]*" />
<RegularExpression id="open-text-param-value-pattern" jsPattern="^(.*[\s]*)*$"/>
<RegularExpression id="google-analytics-cookie-pattern" javaPattern="^[a-zA-Z0-9.!\-\/+=_ :\^()|]*$"/>
</RegularExpressions>

-The Above regular expression will allow '$' to be used.
-The id 'sc-paramter-value-pattern' is the regular expression which controls the pattern of values which can be used

For more information on Java regular expressions please visit: http://docs.oracle.com/javase/tutorial/essential/regex/

2. Register the newly created regular expressions by adding the following to <INSTALLDIR>/repository/eardata/sbc/extn/web.xml.

<context-param>
<param-name>scui-regex-file-sbc-2</param-name>
<param-value>/WEB-INF/regularexpressions/sbc_override_regularexpressions.xml::501</param-value>
</context-param>

Note: The param-name should be unique and the Id (501) is to be higher than 500.

3. Rebuild the smcfs EAR

Note: The sbc.war will contain the newly created sbc_overide_regularexpressions.xml, in the following directory 'WEB-INF/regularexpressions'

5. Deploy the smcfs EAR

Cross reference information
Segment Product Component Platform Version Edition
Commerce Sterling Selling and Fulfillment Suite AIX, HP-UX, Linux, Solaris 9.0

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Sterling Order Management
Extensions

Software version:

9.1, 9.2, 9.2.1

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1645696

Modified date:

2013-08-01

Translate my page

Machine Translation

Content navigation