PreExecuteReportSet.md
... ...
@@ -1,8 +1,12 @@
1
-**Hidden Filter C#**
1
+#The PreExecuteReportSet() Method
2
+
3
+[[_TOC_]]
4
+
5
+##Hidden Filter C/#
2 6
3 7
This is a code sample showing how to add a hidden filter to a report. The first filter uses the _strArray_, but you will need to write a function which returns the columns which you wish to filter upon.
4 8
5
-```
9
+```csharp
6 10
public override void PreExecuteReportSet(Izenda.AdHoc.ReportSet reportSet)
7 11
8 12
{
... ...
@@ -34,18 +38,13 @@ public override void PreExecuteReportSet(Izenda.AdHoc.ReportSet reportSet)
34 38
} //end if
35 39
}//end method
36 40
```
37
-
38
-#The PreExecuteReportSet() Method
39
-
40
-[[_TOC_]]
41
-
42 41
Essentially, to use a multi valued filter, you must use the In operator (basically an equals operator with comma separated values) and the .Values specifier.
43 42
44 43
To use a single valued operator such as "Like" (basically a case sensitive contains), you can not use an array and must use the .Value specifier.
45 44
46 45
##Hidden Filter with sql override
47 46
48
-```
47
+```csharp
49 48
Public Overrides Sub PreExecuteReportSet(ByVal reportSet As Izenda.AdHoc.ReportSet)
50 49
51 50
MyBase.PreExecuteReportSet(reportSet)
... ...
@@ -61,7 +60,7 @@ End Sub
61 60
62 61
##Hidden Filter VB.NET
63 62
64
-```
63
+```visualbasic
65 64
Public Overrides Sub PreExecuteReportSet(ByVal reportSet As Izenda.AdHoc.ReportSet)
66 65
MyBase.PreExecuteReportSet(reportSet)
67 66
Dim emails(1) As String