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