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

Displaying Datasource Parameters in Report Body

3 Answers 97 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Sadie
Top achievements
Rank 2
Sadie asked on 09 Apr 2015, 10:11 PM

I have a report with a parameter set at the datasource level to pull the Top N results from the database.

I would like to be able to display the current value of the Top N datasource parameter in a text box in the body of my report.

Is there a way to do this simply?

i.e.

Datasource Parameter: @topCount

Text Box: Top {@topCount} Records by Total

3 Answers, 1 is accepted

Sort by
0
Sadie
Top achievements
Rank 2
answered on 09 Apr 2015, 10:13 PM

i.e.

If @topCount is set to 5, then "Top {@topCount} Records by Total" would display as "Top 5 Records by Total".

0
Accepted
Stef
Telerik team
answered on 10 Apr 2015, 12:52 PM
Hi Sadie,

Please check the attached video in IE. It illustrates how to configure a SqlDataSource to use parameterized SQL query and how to map SQL parameters to report parameters - SQL Data Source Wizard steps. This approach allows you to display the required information in the report by including the parameter in an expression for a TextBox.Value.


I hope this helps you.

Regards,
Stef
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Sadie
Top achievements
Rank 2
answered on 10 Apr 2015, 09:22 PM
Thank you so much! The video helped a lot.
Tags
Report Designer (standalone)
Asked by
Sadie
Top achievements
Rank 2
Answers by
Sadie
Top achievements
Rank 2
Stef
Telerik team
Share this question
or