FAQ/GetReportIDByName.md
... ...
@@ -0,0 +1,28 @@
1
+#GetReportIDByName
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Provides an override to the process that obtains a report ID based on the report name.
8
+
9
+##C Example
10
+
11
+```csharp
12
+public override string GetReportIDByName(string fullReportName)
13
+{
14
+ Dictionary<string, string> nameToIdDict = new Dictionary<string, string>();
15
+ LoadReportIDs(nameToIdDict);
16
+ return nameToIdDict.ContainsKey(fullReportName) ? nameToIdDict[fullReportName] : null;
17
+}
18
+```
19
+
20
+##VB.NET Example
21
+
22
+```visualbasic
23
+Public Overrides Function GetReportIDByName(fullReportName As String) As String
24
+ Dim nameToIdDict As New Dictionary(Of String, String)
25
+ LoadReportIDs(nameToIdDict)
26
+ Return If(nameToIdDict.ContainsKey(fullReportName), nameToIdDict(fullReportName), Nothing)
27
+End Function
28
+```
... ...
\ No newline at end of file