5245665aec83f2b6d521f9b71e48fdde1615c115
Integration/Tutorials/Getting-Started.md
| ... | ... | @@ -1 +1,51 @@ |
| 1 | -Re-purpose this page |
|
| ... | ... | \ No newline at end of file |
| 0 | +#ShowDataWhenParametersBlank |
|
| 1 | + |
|
| 2 | +[[_TOC_]] |
|
| 3 | + |
|
| 4 | +##About |
|
| 5 | + |
|
| 6 | +Obsolete: As of version 6.7, this setting is no longer available. |
|
| 7 | + |
|
| 8 | +Gets or sets whether the data grid should be displayed on the report viewer before the user selects values for all of the filters on the report. This setting does not apply to the report designer preview tab. |
|
| 9 | + |
|
| 10 | +##Global.asax (C♯) |
|
| 11 | + |
|
| 12 | +```csharp |
|
| 13 | +//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig |
|
| 14 | +public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
|
| 15 | +{ |
|
| 16 | + // Configure settings |
|
| 17 | + // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method |
|
| 18 | + public static void InitializeReporting() { |
|
| 19 | + //Check to see if we've already initialized. |
|
| 20 | + if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null) |
|
| 21 | + return; |
|
| 22 | + AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
|
| 23 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 24 | + Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
|
| 25 | + AdHocSettings.ShowDataWhenParametersBlank = true; |
|
| 26 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 27 | + } |
|
| 28 | +} |
|
| 29 | + |
|
| 30 | +##Global.asax (VB.NET) |
|
| 31 | + |
|
| 32 | +```visualbasic |
|
| 33 | + |
|
| 34 | +'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig |
|
| 35 | +Public Class CustomAdHocConfig |
|
| 36 | + Inherits Izenda.AdHoc.DatabaseAdHocConfig |
|
| 37 | + |
|
| 38 | + Shared Sub InitializeReporting() |
|
| 39 | + 'Check to see if we've already initialized |
|
| 40 | + If HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing Then |
|
| 41 | + Return |
|
| 42 | + 'Initialize System |
|
| 43 | + AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
|
| 44 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
|
| 45 | + Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
|
| 46 | + AdHocSettings.ShowDataWhenParametersBlank = true |
|
| 47 | + HttpContext.Current.Session("ReportingInitialized") = True |
|
| 48 | + End Sub |
|
| 49 | +End Class |
|
| 50 | +``` |
|
| ... | ... | \ No newline at end of file |