com.crystaldecisions.reports.sdk
Class ParameterFieldController

java.lang.Object
  |
  +--com.crystaldecisions.reports.sdk.ParameterFieldController

public class ParameterFieldController
extends java.lang.Object

This object is used to add, remove, and modify parameter fields in a report.

Tip: To access the ParameterFieldController object, use the getParameterFieldController method in the DataDefController object.


Method Summary
 void setCurrentValue(java.lang.String sReportName, java.lang.String sFieldName, double newValue)
           Sets a single value for the parameter field.
 void setCurrentValue(java.lang.String sReportName, java.lang.String sFieldName, java.lang.Object newValue)
           Sets a single value for the parameter field.
 void setCurrentValues(java.lang.String sReportName, java.lang.String sFieldName, java.lang.Object[] newValue)
           Sets the current values for the parameter field.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setCurrentValues

public void setCurrentValues(java.lang.String sReportName,
                             java.lang.String sFieldName,
                             java.lang.Object[] newValue)
                      throws ReportSDKException

Sets the current values for the parameter field.

Parameters:
sReportName - the report that contains the specified parameter field.
sFieldName - the parameter field name.
newValue - the collection of values to be stored in the parameter field.
Throws:
ReportSDKException

setCurrentValue

public void setCurrentValue(java.lang.String sReportName,
                            java.lang.String sFieldName,
                            double newValue)
                     throws ReportSDKException

Sets a single value for the parameter field.

Note: The sReportName parameter refers to the name of the subreport. To set the parameters in the main report, use an empty string as the sReportName parameter.

Parameters:
sReportName - the report that contains the specified parameter field.
sFieldName - the parameter field name.
newValue - the value that you want to store in the parameter field.
Throws:
ReportSDKException

setCurrentValue

public void setCurrentValue(java.lang.String sReportName,
                            java.lang.String sFieldName,
                            java.lang.Object newValue)
                     throws ReportSDKException

Sets a single value for the parameter field.

Note: The sReportName parameter refers to the name of the subreport. To set the parameters in the main report, use an empty string as the sReportName parameter.

Parameters:
sReportName - the report that contains the specified parameter field.
sFieldName - the parameter field name.
newValue - the object that you want to store in the parameter field.
Throws:
ReportSDKException