'Allow Multiple Values' - Parameter

Dec 1, 2010 at 12:18 PM

Hi there,

I have tried a few methods, but seem unable to get a report to load with one parameter having multiple values (as in, the MultiValue flag is true). What is the syntax required to create a ParameterValue in this way for access in the report?

 

Thanks in advance for any help!

Josh

Dec 3, 2010 at 3:12 PM
Edited Dec 3, 2010 at 3:14 PM

The answer is to just give the names for the different values the same parameter name.

For example, if you have 'ReportParameter' which we want to give 3 different values, the execution info parameter array could have a several ParameterValue objects with the same Name values:

 

array(3) { 

   [0]=> object(ParameterValue)#22 (3) { 
      ["Name"]=> string(15) "ReportParameter" 
      ["Value"]=> string(2) "81" 
      ["Label"]=> NULL 
   } 

   [1]=> object(ParameterValue)#25 (3) { 
      ["Name"]=> string(15) "ReportParameter" 
      ["Value"]=> string(4) " 104" 
      ["Label"]=> NULL 
   } 

   [2]=> object(ParameterValue)#2 (3) { 
      ["Name"]=> string(15) "ReportParameter" 
      ["Value"]=> string(4) " 150" 
      ["Label"]=> NULL 
   } 

}