8089c12895a3613302de31dd19c99edc9ab26fc1
API/CodeSamples/AllowArchivedReportTableCreation.md
| ... | ... | @@ -24,11 +24,9 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 24 | 24 | //Creates a connection to Microsoft SQL Server |
| 25 | 25 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 26 | 26 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 27 | + AdHocSettings.AllowArchivedReportTableCreation = true; //The relevant setting |
|
| 27 | 28 | HttpContext.Current.Session["ReportingInitialized"] = true; |
| 28 | 29 | } |
| 29 | - public override void ConfigureSettings() { |
|
| 30 | - AdHocSettings.AllowArchivedReportTableCreation = true; |
|
| 31 | - } |
|
| 32 | 30 | } |
| 33 | 31 | ``` |
| 34 | 32 | |
| ... | ... | @@ -47,11 +45,8 @@ Public Class CustomAdHocConfig |
| 47 | 45 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 48 | 46 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 49 | 47 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 48 | + AdHocSettings.AllowArchivedReportTableCreation = True 'The relevant setting |
|
| 50 | 49 | HttpContext.Current.Session("ReortingInitialized") = True |
| 51 | 50 | End Sub |
| 52 | - |
|
| 53 | - Public Overrides Sub ConfigureSettings() |
|
| 54 | - AdHocSettings.AllowArchivedReportTableCreation = True |
|
| 55 | - End Sub |
|
| 56 | 51 | End Class |
| 57 | 52 | ``` |
| ... | ... | \ No newline at end of file |