Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing multiple (discrete) values to a parameter

Status
Not open for further replies.

datucker

Programmer
May 6, 2002
1
NL
Hi,

In Crystal Reports I can create a parameter which accepts multiple discrete values by setting 'Allow multiple values' on and select 'Discrete value(s)' in the Edit Parameter Screen.

Now I would like to pass multiple discrete values from my software to the runtime component so I can pick some discrete records that are not in a particular range. Passing just one value is no problem: the SetCurrentValue method is being used in my software for that now. How can I pass multiple discrete values from my software to the Report Viewer?

With kind regards,
Jarno Beumer
 
try AddCurrentValue. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Keep looping these statements with the values that you want:

result = PEConvertVInfoToPFInfo(valueInfo, paramInfo.ValueType, paramInfo.CurrentValue)

paramInfo.CurrentValueSet = 1
paramInfo.DefaultValueSet = 0

result = PEAddParameterCurrentValue(mainjob, paramInfo.Name, paramInfo.reportname, valueInfo)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top