|
Report Application Server .NET SDK Developer Guide
|
|
To set the value of a discrete parameter
|
|
See Also
|
You must know the name and type of a parameter to use the following method to set the value.
|
Note
|
|
If you do not know the name or type a parameter, use the DataDefinition class to retrieve the ParameterFields collection saved in the report.
|
- Use the SetCurrentValue property in the ParameterFieldController class to set parameters to the appropriate type and value.
|
Visual Basic
|
|
|
Private Sub SetDiscreteParameter(ByVal rcd As ISCDReportClientDocument) Dim paramController As ParameterFieldController paramController = rcd.DataDefController.ParameterFieldController paramController.SetCurrentValue("", "StringParam", "Enjoy the samples") paramController.SetCurrentValue("", "NumericParam", 200) paramController.SetCurrentValue("", "CurrencyParam", 1000.00) paramController.SetCurrentValue("", "BooleanParam", True) End Sub
|
|
C#
|
|
|
void SetDiscreteParameter(ISCDReportClientDocument rcd) { ParameterFieldController paramController; paramController = rcd.DataDefController.ParameterFieldController; paramController.SetCurrentValue("", "StringParam", "Enjoy the samples"); paramController.SetCurrentValue("", "NumericParam", 200); paramController.SetCurrentValue("", "CurrencyParam", 1000.00); paramController.SetCurrentValue("", "BooleanParam", 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.
|
This list includes the namespaces used by the sample code:
- CrystalDecisions.Enterprise
- CrystalDecisions.ReportAppServer.ClientDoc
- CrystalDecisions.ReportAppServer.Controllers
See Also
© 2021 SAP AG. All rights reserved.
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Created with the Personal Edition of HelpNDoc: Free Qt Help documentation generator