Symptom
How to get the datatype of the fields used in the Crystal report using Java Reporting Component SDK.
Reproducing the Issue
- Java Reporting Component SDK.
- Tomcat 5.0
Resolution
Use the getType() method of Java Reporting Component SDK to get the datatype of fields used in Crystal report.
The following snippet of code illustrates the use of getType() method
ParameterField ParameterField = (ParameterField)ParameterFields.findField(lsParameterName, FieldDisplayNameType.fieldName, null);
if (ParameterField != null)
{
this.writeDebug("boCrystal.setParameters", "Set parameter:"+lsParameterName +"="+lsParameterValues+" Type="+ParameterField.getType()+" RangeKind="+boParameterField.getValueRangeKind());
}
Keywords
JRC, parameter type
, KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , How To