a766279c9b27550ef31b0e026c7e8e3ac5b67e7b
API/CodeSamples/AllowGroupWithoutSelect.md
| ... | ... | @@ -0,0 +1,55 @@ |
| 1 | +#AllowGroupWithoutSelect |
|
| 2 | + |
|
| 3 | +[[_TOC_]] |
|
| 4 | + |
|
| 5 | +##About |
|
| 6 | + |
|
| 7 | +_**Obsolete:** As of version 6.7, this setting is no longer available._ |
|
| 8 | + |
|
| 9 | +Gets or sets value indicating if it is possible to make invisible fields which are used for Visual Grouping. |
|
| 10 | +If set, fields with both "Hide This Field" (in the advanced properties) and "VG"; flags set, will not lead to report being considered as invalid. |
|
| 11 | + |
|
| 12 | +**Default Value:** false |
|
| 13 | + |
|
| 14 | +##Global.asax (C♯) |
|
| 15 | + |
|
| 16 | +```csharp |
|
| 17 | +//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig |
|
| 18 | +public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
|
| 19 | +{ |
|
| 20 | + // Configure settings |
|
| 21 | + // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method |
|
| 22 | + public static void InitializeReporting() { |
|
| 23 | + //Check to see if we've already initialized. |
|
| 24 | + if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null) |
|
| 25 | + return; |
|
| 26 | + AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
|
| 27 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 28 | + Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
|
| 29 | + AdHocSettings.ShowDataWhenParametersBlank = true; |
|
| 30 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 31 | + } |
|
| 32 | +} |
|
| 33 | +``` |
|
| 34 | + |
|
| 35 | +##Global.asax (VB.NET) |
|
| 36 | + |
|
| 37 | +```visualbasic |
|
| 38 | + |
|
| 39 | +'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig |
|
| 40 | +Public Class CustomAdHocConfig |
|
| 41 | + Inherits Izenda.AdHoc.DatabaseAdHocConfig |
|
| 42 | + |
|
| 43 | + Shared Sub InitializeReporting() |
|
| 44 | + 'Check to see if we've already initialized |
|
| 45 | + If HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing Then |
|
| 46 | + Return |
|
| 47 | + 'Initialize System |
|
| 48 | + AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
|
| 49 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
|
| 50 | + Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
|
| 51 | + AdHocSettings.ShowDataWhenParametersBlank = true |
|
| 52 | + HttpContext.Current.Session("ReportingInitialized") = True |
|
| 53 | + End Sub |
|
| 54 | +End Class |
|
| 55 | +``` |
|
| ... | ... | \ No newline at end of file |