SAP Knowledge Base Article - Public

1553984 - CRJ: How to Require Non-empty String Parameter


When using the Crystal Reports for Java (CRJ) 2.x to render a report, when prompted for a string parameter, the user can press OK without entering anything in the string field.


Use IParameterField.setEditMask() to set the mask to "A*".  This will require at least one alphanumeric character to be entered.

Or, the report itself can be edited to add the requirement for at least one character. Code is then no longer necessary to effect the requirement.


api sdk jrc crj crystal reports java parameter argument string empty null value length require , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , How To


SAP Crystal Reports XI R2