API/CodeSamples/ShowFiltersInReportViewer.md
... ...
@@ -0,0 +1,59 @@
1
+#ShowFiltersInReportViewer
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Determines whether or not filters should be shown in the report viewer. This setting is deprecated. In modern versions of Izenda (6.9+) You can use jquery to suppress the following elements in the Report Viewer:
8
+
9
+```jquery
10
+
11
+ jq$('#tab1li').removeClass('active');
12
+ jq$('#tab1').hide();
13
+ jq$('#updateBtnPC').show();
14
+
15
+```
16
+
17
+**Default Value:** False
18
+
19
+##Global.asax (C♯)
20
+
21
+```csharp
22
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
23
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
24
+{
25
+ // Configure settings
26
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
27
+ public static void InitializeReporting() {
28
+ //Check to see if we've already initialized.
29
+ if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
30
+ return;
31
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
32
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
33
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
34
+ AdHocSettings.ShowFiltersInReportViewer = True; //The relevant setting
35
+ HttpContext.Current.Session["ReportingInitialized"] = true;
36
+ }
37
+}
38
+```
39
+
40
+##Global.asax (VB.NET)
41
+
42
+```visualbasic
43
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
44
+Public Class CustomAdHocConfig
45
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
46
+
47
+ Shared Sub InitializeReporting()
48
+ 'Check to see if we've already initialized
49
+ If HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing Then
50
+ Return
51
+ 'Initialize System
52
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
53
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
54
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
55
+ AdHocSettings.ShowFiltersInReportViewer = True 'The relevant setting
56
+ HttpContext.Current.Session("ReportingInitialized") = True
57
+ End Sub
58
+End Class
59
+```
... ...
\ No newline at end of file