API/CodeSamples/FieldList.md
... ...
@@ -0,0 +1,66 @@
1
+#FieldList
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+_**Obsolete:** This feature is no longer supported._
8
+
9
+Gets or sets the default Izenda.AdHoc.AdHocSettings.FieldList control. This represents the Fields tab on the Izenda.Web.UI.AdHocReportDesigner.
10
+
11
+**Default Value:** null
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 (AdHocContext.Initialized)
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.FieldList = new MyFieldList(); //The relevant setting
29
+ AdHocContext.Initialized = true;
30
+ }
31
+}
32
+
33
+private class MyFieldList : Izenda.Web.UI.FieldList
34
+{
35
+
36
+}
37
+
38
+```
39
+
40
+##Global.asax (VB.NET)
41
+
42
+```visualbasic
43
+
44
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
45
+Public Class CustomAdHocConfig
46
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
47
+
48
+ Shared Sub InitializeReporting()
49
+ 'Check to see if we've already initialized
50
+ If AdHocContext.Initialized Then
51
+ Return
52
+ 'Initialize System
53
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
54
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
55
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
56
+ AdHocSettings.FieldList = New MyFieldList() 'The relevant setting
57
+ AdHocContext.Initialized = True
58
+ End Sub
59
+End Class
60
+
61
+Private Class MyFieldList
62
+ Inherits Izenda.Web.UI.FieldList
63
+
64
+End Class
65
+
66
+```
... ...
\ No newline at end of file