999a99145571941f34187e5fe43fe8fa9c364d3c
API/CodeSamples/ShowDataSourcesAsCheckBoxes.md
| ... | ... | @@ -22,12 +22,8 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 22 | 22 | //Creates a connection to Microsoft SQL Server |
| 23 | 23 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 24 | 24 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 25 | - HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 26 | - } |
|
| 27 | - |
|
| 28 | - //Add custom settings below |
|
| 29 | - public override void ConfigureSettings() { |
|
| 30 | 25 | AdHocSettings.ShowDataSourcesAsCheckBoxes = true; |
| 26 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 31 | 27 | } |
| 32 | 28 | } |
| 33 | 29 | ``` |
| ... | ... | @@ -49,18 +45,18 @@ Public Class CustomAdHocConfig |
| 49 | 45 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 50 | 46 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 51 | 47 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 52 | - HttpContext.Current.Session("ReportingInitialized") = True |
|
| 53 | - End Sub |
|
| 54 | - |
|
| 55 | - 'Add custom settings below |
|
| 56 | - Public Overrides Sub ConfigureSettings() |
|
| 57 | 48 | AdHocSettings.ShowDataSourcesAsCheckBoxes = True |
| 49 | + HttpContext.Current.Session("ReportingInitialized") = True |
|
| 58 | 50 | End Sub |
| 59 | 51 | End Class |
| 60 | 52 | ``` |
| 61 | 53 | |
| 62 | 54 | ##Screenshots |
| 63 | 55 | |
| 64 | -###ShowDataSourcesAsCheckBoxes = true |
|
| 56 | +ShowDataSourcesAsCheckBoxes = true |
|
| 57 | + |
|
| 58 | +![]() |
|
| 59 | + |
|
| 60 | +ShowDataSourcesAsCheckBoxes = false |
|
| 65 | 61 | |
| 66 | -###ShowDataSourcesAsCheckBoxes = false |
|
| ... | ... | \ No newline at end of file |
| 0 | +![]() |
|
| ... | ... | \ No newline at end of file |