e4f463a6314f8b9ca0dd7beb814598bdc7ea5c59
API/CodeSamples/VisibleDataSources.md
| ... | ... | @@ -19,10 +19,8 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 19 | 19 | //Creates a connection to Microsoft SQL Server |
| 20 | 20 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 21 | 21 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 22 | - HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 23 | - } |
|
| 24 | - public override void ConfigureSettings() { |
|
| 25 | 22 | AdHocSettings.VisibleDataSources = new string[] {"DataSource1", "DataSource2"}; |
| 23 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 26 | 24 | } |
| 27 | 25 | } |
| 28 | 26 | ``` |
| ... | ... | @@ -42,11 +40,8 @@ Public Class CustomAdHocConfig |
| 42 | 40 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 43 | 41 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 44 | 42 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 45 | - HttpContext.Current.Session("ReortingInitialized") = True |
|
| 46 | - End Sub |
|
| 47 | - |
|
| 48 | - Public Overrides Sub ConfigureSettings() |
|
| 49 | 43 | AdHocSettings.VisibleDataSources = New String() {"Datasource1", "Datasource2"} |
| 44 | + HttpContext.Current.Session("ReortingInitialized") = True |
|
| 50 | 45 | End Sub |
| 51 | 46 | End Class |
| 52 | 47 | ``` |