-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new kb article configure-report-parameters-telerik-reporting (#…
…1425) * Added new kb article configure-report-parameters-telerik-reporting * Fix links and add screenshots * Update configure-report-parameters-telerik-reporting.md --------- Co-authored-by: KB Bot <[email protected]> Co-authored-by: Desislava Yordanova <[email protected]> Co-authored-by: Todor Arabadzhiev <[email protected]>
- Loading branch information
1 parent
03250d2
commit eea5f3b
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
knowledge-base/configure-report-parameters-telerik-reporting.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: Configuring Report Parameters in Telerik Reporting | ||
description: Learn how to define and use report parameters in Telerik Reporting to ensure they are recognized in report previews and avoid errors. | ||
type: how-to | ||
page_title: How to Ensure Report Parameters Are Recognized in Telerik Reporting Previews | ||
slug: configure-report-parameters-telerik-reporting | ||
tags: report, parameters, telerik, reporting, configuration, preview, error | ||
res_type: kb | ||
ticketid: 1655580 | ||
--- | ||
|
||
## Environment | ||
|
||
| Product | Author | | ||
| --- | ---- | | ||
| Standalone Report Designer |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| | ||
|
||
## Description | ||
|
||
While using the [Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/overview%}), I encountered an error during the preview: "The expression contains object 'InspectionId' that is not defined in the current context." | ||
|
||
![Object Not Defined ](images/report-parameter-not-defined-error.png) | ||
|
||
I have configured a parameter, and my select statement includes this parameter. Although executing the query with a design time value returns one record from the data view, the preview fails with the mentioned error. This KB article also answers the following questions: | ||
- How do I link SQL data source parameters to report parameters in Telerik Reporting? | ||
- What steps should I follow to ensure my report parameters are recognized during the preview? | ||
- Why is my report parameter not found in the current context during the preview? | ||
|
||
## Solution | ||
|
||
To resolve the issue where a report parameter is not recognized in the report preview, ensure that the report parameter is correctly defined in the report's parameters collection and linked to the SqlDataSource component. | ||
|
||
1. Verify that the report parameter is added to the report parameters collection. Refer to the [Report Parameters Overview]({%slug telerikreporting/designing-reports/connecting-to-data/report-parameters/overview%}) for guidance on defining report parameters. | ||
|
||
>caption Report Parameter | ||
![SqlDataSourceParameter](images/report-parameter.png) | ||
|
||
For detailed steps on adding and configuring report parameters, consult the [Approaches for Adding Report Parameters]({%slug telerikreporting/designing-reports/connecting-to-data/report-parameters/how-to-add-report-parameters%}) guide. | ||
|
||
1. Ensure that each SqlDataSource parameter is linked to an expression, such as a report parameter value, in the report definition. SqlDataSource parameters cannot directly receive values from the ReportSource.Parameters collection. Review the [Using Parameters with the SqlDataSource Component]({%slug telerikreporting/designing-reports/connecting-to-data/data-source-components/sqldatasource-component/using-parameters-with-the-sqldatasource-component%}) for more details. | ||
|
||
>caption SqlDataSourceParameter | ||
![SqlDataSourceParameter](images/sqldatasource-parameter.png) | ||
|
||
By following these steps, you ensure that your report parameters are correctly recognized during the preview, preventing errors related to undefined objects in the current context. | ||
|
||
## See Also | ||
|
||
- [Report Parameters Overview]({%slug telerikreporting/designing-reports/connecting-to-data/report-parameters/overview%}) | ||
- [Using Parameters with the SqlDataSource Component]({%slug telerikreporting/designing-reports/connecting-to-data/data-source-components/sqldatasource-component/using-parameters-with-the-sqldatasource-component%}) | ||
- [Approaches for Adding Report Parameters]({%slug telerikreporting/designing-reports/connecting-to-data/report-parameters/how-to-add-report-parameters%}) | ||
- [Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/overview%}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.