API/CodeSamples/DrilldownStyle.md
... ...
@@ -0,0 +1,64 @@
1
+#DrilldownStyle
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Gets or sets the list of available drill-down report fields formats.
8
+This affects contents of all "Drill-down style" comboboxes in the ReportDesigner.
9
+For example, in the Advanced Properties of a field at the Fields tab.
10
+
11
+Note: You can find all possible keys by calling AdHocSettings.DrillDownStyle.AllKeys.
12
+
13
+Currently, the valid keys are:
14
+* DetailLink
15
+* DetailLinkNewWindow
16
+* EmbeddedDetail
17
+* DetailLinkPopup
18
+
19
+Default Value:
20
+##Global.asax (C♯)
21
+
22
+```csharp
23
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
24
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
25
+{
26
+ // Configure settings
27
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
28
+ public static void InitializeReporting() {
29
+ //Check to see if we've already initialized.
30
+ if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
31
+ return;
32
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
33
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
34
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
35
+ AdHocSettings.ExportLimit = 100000; //The relevant setting
36
+ HttpContext.Current.Session["ReportingInitialized"] = true;
37
+ }
38
+}
39
+```
40
+
41
+##Global.asax (VB.NET)
42
+
43
+```visualbasic
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 HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing 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.ExportLimit = 100000 'The relevant setting
57
+ HttpContext.Current.Session("ReportingInitialized") = True
58
+ End Sub
59
+End Class
60
+```
61
+
62
+##Screenshots
63
+
64
+![](http://izenda.com/Site/Images/Screenshots/DrillDownStyleDS.png)
... ...
\ No newline at end of file