2eb1ff8ac2b59ff4bff324cdb0c9f4959cabbe14
API/CodeSamples/VisibleDataSources.md
| ... | ... | @@ -28,7 +28,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 28 | 28 | //Creates a connection to Microsoft SQL Server |
| 29 | 29 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 30 | 30 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 31 | - AdHocSettings.VisibleDataSources = new string[] {"DataSource1", "DataSource2"}; //The relevant setting |
|
| 31 | + AdHocSettings.VisibleDataSources = new string[] {"Table1", "Table2","View1", "StoredProcedure1"}; //The relevant setting |
|
| 32 | 32 | HttpContext.Current.Session["ReportingInitialized"] = true; |
| 33 | 33 | } |
| 34 | 34 | } |
| ... | ... | @@ -49,7 +49,7 @@ Public Class CustomAdHocConfig |
| 49 | 49 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 50 | 50 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 51 | 51 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 52 | - AdHocSettings.VisibleDataSources = New String() {"Datasource1", "Datasource2"} 'The relevant setting |
|
| 52 | + AdHocSettings.VisibleDataSources = New String() {"Table1", "Table2","View1", "StoredProcedure1"} 'The relevant setting |
|
| 53 | 53 | HttpContext.Current.Session("ReortingInitialized") = True |
| 54 | 54 | End Sub |
| 55 | 55 | End Class |