Crystal Reports for Eclipse Developer Guide

To set the value of a discrete parameter

  1. Use the SetCurrentValue property in the ParameterFieldController class to set parameters to the appropriate type and value.
Example: 
void setDiscreteParameter(ReportClientDocument rcd)
{
   ParameterFieldController paramController;
   paramController = rcd.getDataDefController().getParameterFieldController();
   paramController.setCurrentValue("", "StringParam", "Enjoy the samples");
   paramController.setCurrentValue("", "NumericParam", Integer.valueOf("200"));
   paramController.setCurrentValue("", "CurrencyParam", Float.valueOf("1000.00"));
   paramController.setCurrentValue("", "BooleanParam", Boolean.valueOf("true"));
}

Note: To set the value of dynamic cascading parameters you must set the value of the parameters in the order they will be displayed.



SAP BusinessObjects
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Product Documentation on the Web
http://help.sap.com/