API/CodeSamples/JoinDropDownWidth.md
... ...
@@ -0,0 +1,52 @@
1
+#JoinDropDownWidth
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Gets or sets the width in pixels of the join drop down in advanced mode on the data sources tab.
8
+
9
+**NOTE:** [http://wiki.izenda.us/API/CodeSamples/ShowJoinDropDown](ShowJoinDropDown) must be set to True.
10
+
11
+**Default Value:** 100
12
+
13
+##Global.asax (C♯)
14
+
15
+```csharp
16
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
17
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
18
+{
19
+ // Configure settings
20
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
21
+ public static void InitializeReporting() {
22
+ //Check to see if we've already initialized.
23
+ if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
24
+ return;
25
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
26
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
27
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
28
+ AdHocSettings.JoinDropDownWidth = 123; //The relevant setting
29
+ }
30
+}
31
+```
32
+
33
+##Global.asax (VB.NET)
34
+
35
+```visualbasic
36
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
37
+Public Class CustomAdHocConfig
38
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
39
+
40
+ Shared Sub InitializeReporting()
41
+ 'Check to see if we've already initialized
42
+ If HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing Then
43
+ Return
44
+ 'Initialize System
45
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
46
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
47
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
48
+ AdHocSettings.JoinDropDownWidth = 234 'The relevant setting
49
+ HttpContext.Current.Session("ReportingInitialized") = True
50
+ End Sub
51
+End Class
52
+```