API/CodeSamples/JoinedTablesList.md
... ...
@@ -0,0 +1,61 @@
1
+#JoinedTablesList
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+_**Obsolete:** This setting no longer has any effect on the application._
8
+
9
+Gets or sets the default Izenda.AdHoc.AdHocSettings.JoinedTablesList control. This represents the Advanced mode for the DataSources Tab of the Izenda.Web.UI.AdHocReportDesigner.
10
+
11
+_**Note:** The checkbox mode control is not available for overriding either._
12
+
13
+**Default Value:** null
14
+
15
+##Global.asax (C♯)
16
+
17
+```csharp
18
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
19
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
20
+{
21
+ // Configure settings
22
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
23
+ public static void InitializeReporting() {
24
+ //Check to see if we've already initialized.
25
+ if (AdHocContext.Initialized)
26
+ return;
27
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
28
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
29
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
30
+ AdHocSettings.JoinedTablesList = new Izenda.Web.UI.JoinedTablesList() { DefaultRowCount = 1000, InsertAboveImageUrl = "MyInsertAboveIcon.png", InsertBelowImageUrl = "MyInsertBelowIcon.png" }; //The relevant setting
31
+ AdHocContext.Initialized = true;
32
+ }
33
+}
34
+```
35
+
36
+##Global.asax (VB.NET)
37
+
38
+```visualbasic
39
+
40
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
41
+Public Class CustomAdHocConfig
42
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
43
+
44
+ Shared Sub InitializeReporting()
45
+ 'Check to see if we've already initialized
46
+ If AdHocContext.Initialized Then
47
+ Return
48
+ 'Initialize System
49
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
50
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
51
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
52
+ AdHocSettings.JoinedTablesList = New Izenda.Web.UI.JoinedTablesList() With
53
+ {
54
+ .DefaultRowCount = 1000,
55
+ .InsertAboveImageUrl = "MyInsertAboveIcon.png",
56
+ .InsertBelowImageUrl = "MyInsertBelowIcon.png"
57
+ } ' The relevant setting
58
+ AdHocContext.Initialized = True
59
+ End Sub
60
+End Class
61
+```
... ...
\ No newline at end of file