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

Multivalue report parameter default value from second datasource

2 Answers 192 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jiri
Top achievements
Rank 1
Jiri asked on 28 Jan 2012, 09:04 PM
Hi

my report has two sqlDataSources: first is bound to report as report data, the second is bound to multivalue parameter as data source (and selected value from this parameter is used as a filter). Now I need to set default value for that parameter using expression, but fields are available only from first (report bound) data source. Is it possible to address field from second data source in expression? If not, how to select default value from second expression programmatically?

Thank you in advance,

Jiri

2 Answers, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 31 Jan 2012, 12:21 PM
Hi Jiri,

You can specify the default value for Multivalue Report Parameters using Aggregate Functions. You can also create a Custom Aggregate that will select the default values, according to your needs. There is a guide on how to implement this approach in the following article: Using Multivalue Parameters.

All the best,
Elian
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
Jiri
Top achievements
Rank 1
answered on 31 Jan 2012, 12:25 PM
Hi Elian

thank you for your reply, I figured it out that way.

Best regards
Jiri
Tags
General Discussions
Asked by
Jiri
Top achievements
Rank 1
Answers by
Elian
Telerik team
Jiri
Top achievements
Rank 1
Share this question
or