API/CodeSamples/ShowInvalidVizExportLink.md
... ...
@@ -9,25 +9,19 @@ ShowInvalidVizExportLink is a boolean variable that determines whether the messa
9 9
##Global.asax (C♯)
10 10
11 11
```csharp
12
-//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
13
-public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
14
-{
15
- // Configure settings
16
- // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
17
- public static void InitializeReporting() {
18
- //Check to see if we've already initialized.
19
- if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
20
- return;
21
- AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
22
- //Creates a connection to Microsoft SQL Server
23
- AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
24
- Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
25
- AdHocSettings.ShowJoinDropDown = true; //the relevant setting
26
- HttpContext.Current.Session["ReportingInitialized"] = true;
27
- }
28
-}
12
+public class CustomAdHocConfig : FileSystemAdHocConfig {
13
+ public static void InitializeReporting() {
14
+
15
+
16
+ AdHocSettings.ShowInvalidVizExportLink = false;
17
+
18
+
19
+ } // End of InitializReporting
20
+
21
+
22
+ } // End of CustomAdHocConfig
29 23
```
30 24
31 25
##Screenshots
32 26
33
-![](http://izenda.com/Site/Images/Screenshots/ShowJoinDropDownDS.png)
... ...
\ No newline at end of file
0
+![](/API/CodeSamples/ShowInvalidVizExportLink/ShowInvalidviz.png)
... ...
\ No newline at end of file