Skip to content

Commit de2b0e3

Browse files
authored
Update report-book-parameters.md
1 parent 97ad51f commit de2b0e3

File tree

1 file changed

+7
-48
lines changed

1 file changed

+7
-48
lines changed

designing-reports/report-book/report-book-parameters.md

Lines changed: 7 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ In the sample pictures below, you will see in few steps how to set a value for a
2929

3030
### In Standalone Designer
3131

32+
1. Open the Report Book
3233
1. Click on the **Dashboard.trdp**
3334
1. From the Toolbar, click on the **Parameters**
3435
1. The **Edit Parameter** window will open, then select New
@@ -49,56 +50,14 @@ In the sample pictures below, you will see in few steps how to set a value for a
4950

5051
* __When report parameters have unique names or the target parameters are merged:__ If a parameter is distinguishable by its Name property or the Name denotes several merged parameters, refer to the parameter directly by the value of its Name property.
5152

52-
````C#
53-
#region Set_Values_For_Unique_Or_Mergable_ReportParameters_UriReportSource
54-
var UriReportSource = new Telerik.Reporting.UriReportSource();
55-
UriReportSource.Uri = "MyReportBook.trbp";
56-
57-
// Passing a value for a unique or repeating report parameter that should have one and the same value
58-
// for all reports part of the report book through the report source
59-
UriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("ProductCategory", "Bikes"));
60-
#endregion
61-
````
62-
````VB.NET
63-
'#Region Set_Values_For_Unique_Or_Mergable_ReportParameters_UriReportSource
64-
Dim UriReportSource As New Telerik.Reporting.UriReportSource()
65-
UriReportSource.Uri = "MyReportBook.trbp"
66-
67-
' Passing a value for unique Or repeating report parameter that should have one And the same value
68-
' for all reports part of the report book through the report source
69-
UriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("ProductCategory", "Bikes"))
70-
'#End Region
71-
````
53+
{{source=CodeSnippets\CS\API\Telerik\Reporting\ReportSourceSnippets.cs region=Set_Values_For_Unique_Or_Mergable_ReportParameters_In_ReportSource_Snippet}}
54+
55+
{{source=CodeSnippets\VB\API\Telerik\Reporting\ReportSourceSnippets.vb region=Set_Values_For_Unique_Or_Mergable_ReportParameters_In_ReportSource_Snippet}}
7256

7357
* __When report parameters have repeating names but they are not merged:__ In this case, you need to refer to the individual occurrence of the parameter in a particular report. This is done by denoting the target report by its zero-based index inside the report book.
7458

75-
````C#
76-
#region Set_Values_For_NotMergable_ReportParameters_In_UriReportSource_Snippet
77-
var UriReportSource = new Telerik.Reporting.UriReportSource();
78-
UriReportSource.Uri = "MyReportBook.trbp";
79-
80-
// Passing a value for not mergeable report parameter targeting the FIRST report in the report book
81-
//through the report source
82-
UriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("reports(0).ClientID", 102));
83-
84-
// Passing a value for not mergeable report parameter targeting the SECOND report in the report book
85-
//through the report source
86-
UriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("reports(1).ClientID", 103));
87-
#endregion
88-
````
89-
````VB.NET
90-
'#Region Set_Values_For_NotMergable_ReportParameters_In_UriReportSource_Snippet
91-
Dim UriReportSource As New Telerik.Reporting.UriReportSource()
92-
UriReportSource.Uri = "MyReportBook.trbp"
93-
94-
' Passing a value for Not mergeable report parameter targeting the FIRST report in the report book
95-
' through the report source
96-
UriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("reports(0).ClientID", 102))
97-
98-
' Passing a value for Not mergeable report parameter targeting the SECOND report in the report book
99-
' through the report source
100-
UriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("reports(1).ClientID", 103))
101-
'#End Region
102-
````
59+
{{source=CodeSnippets\CS\API\Telerik\Reporting\ReportSourceSnippets.cs region=Set_Values_For_NotMergable_ReportParameters_In_ReportSource_Snippet}}
60+
61+
{{source=CodeSnippets\VB\API\Telerik\Reporting\ReportSourceSnippets.vb region=Set_Values_For_NotMergable_ReportParameters_In_ReportSource_Snippet}}
10362

10463
>note If you do not use the specified syntax and you refer to the report parameter directly by the `Name` property's value, the value will be set only for the _first_ occurrence of the report parameter in the report book.

0 commit comments

Comments
 (0)