This is a migrated thread and some comments may be shown as answers.

Multivalue parameters and OpenAccess

2 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joakim Winkler
Top achievements
Rank 1
Joakim Winkler asked on 17 Jan 2012, 07:04 PM
Hi!

Is it possible to use multivalue parameters together with an openaccessdatasource?
I have problems when using them in filter expressions.

/Joakim

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Jan 2012, 05:45 PM
Hello Joakim,

Can you share what is the exact problem you've encountered? Do you get any errors? Note that multivalue report parameters return System.Object[], so you should respect that when creating expressions with multivalue report parameters. You can see how multivalue report parameters are used in Filters in our Product Line Sales demo report, where we filter the Table items. Here is a sample expression:

 Expression Operator Value
 =Fields.ProductSubcategory  In  =Parameters.ProductSubcategory.Value

where =Parameters.ProductSubcategory.Value is a multivalue parameter.

Kind regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Joakim Winkler
Top achievements
Rank 1
answered on 24 Jan 2012, 05:47 PM
I think I solved it. When I changed from single to multivalue I only changed from = to IN in the filter expression. Now I tested to also remove the .Value on the parameter side and it worked.
Like: =Fields.fieldid IN =parameters.parametername

Tags
General Discussions
Asked by
Joakim Winkler
Top achievements
Rank 1
Answers by
Steve
Telerik team
Joakim Winkler
Top achievements
Rank 1
Share this question
or