48dfeff95425efc3c44ffce9290257ea7057f638
API/CodeSamples/ViewsOnly.md
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | |
| 5 | 5 | ##About |
| 6 | 6 | |
| 7 | -Gets or sets whether the data sources will include only views or will include both views and other sources such as tables and stored procedures. This etting should be used if you would like only Views to be visible on the Data Sources tab of the Report Designer. This will show the users all views stored on the target database. |
|
| 7 | +Gets or sets whether the data sources will include only views or will include both views and other sources such as tables and stored procedures. This setting should be used if you would like only Views to be visible on the Data Sources tab of the Report Designer. This will show the users all views stored on the target database. You could also control access to specific tables and views with the [[VisibleDataSources|/API/CodeSamples/VisibleDataSources]] setting. |
|
| 8 | 8 | |
| 9 | 9 | _**Note**: ViewsOnly will NOT work if you also use VisibleDataSources._ |
| 10 | 10 | |
| ... | ... | @@ -32,7 +32,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 32 | 32 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
| 33 | 33 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 34 | 34 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 35 | - AdHocSettings.ViewsOnly = true; |
|
| 35 | + AdHocSettings.ViewsOnly = true; //The relevant setting |
|
| 36 | 36 | HttpContext.Current.Session["ReportingInitialized"] = true; |
| 37 | 37 | } |
| 38 | 38 | } |
| ... | ... | @@ -52,7 +52,7 @@ Public Class CustomAdHocConfig |
| 52 | 52 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 53 | 53 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 54 | 54 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 55 | - AdHocSettings.ViewsOnly = True |
|
| 55 | + AdHocSettings.ViewsOnly = True 'The relevant setting |
|
| 56 | 56 | HttpContext.Current.Session("ReportingInitialized") = True |
| 57 | 57 | End Sub |
| 58 | 58 | End Class |