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.



Business Objects, an SAP company
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/
Product Documentation on the Web
http://support.businessobjects.com/documentation/