To set the value of a discrete parameter

Using the SDK ›› Parameters ››
Parent Previous Next

 

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.

NoteNote

If you do not know the name or type a parameter, use the DataDefinition class to retrieve the ParameterFields collection saved in the report.

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);
}

NoteNote

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:

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