48dcdee9e52b74ed310f2f83afc135f2f19e926f
API/CodeSamples/AllowDataFieldsInDescription.md
| ... | ... | @@ -6,6 +6,8 @@ |
| 6 | 6 | |
| 7 | 7 | Gets or sets whether to allow a data field to be used in the description field of the report on the Misc tab of the Report Designer. This is particularly useful in drill-down reports and reports with filters. For example, let's say we are filtering a report by the field "CategoryName" with the value "Produce". When we enter [CategoryName] in the description field, the report will display Produce above the data grid instead of [CategoryName]. This will dynamically change when the user changes the filter value. |
| 8 | 8 | |
| 9 | +**Default value:** true |
|
| 10 | + |
|
| 9 | 11 | ##Global.asax (C♯) |
| 10 | 12 | |
| 11 | 13 | ```csharp |
| ... | ... | @@ -21,12 +23,8 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 21 | 23 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
| 22 | 24 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 23 | 25 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 24 | - HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 25 | - } |
|
| 26 | - |
|
| 27 | - //Add custom settings below |
|
| 28 | - public override void ConfigureSettings() { |
|
| 29 | 26 | AdHocSettings.AllowDataFieldsInDescription = true; |
| 27 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 30 | 28 | } |
| 31 | 29 | } |
| 32 | 30 | ``` |
| ... | ... | @@ -48,12 +46,12 @@ Public Class CustomAdHocConfig |
| 48 | 46 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 49 | 47 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 50 | 48 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 51 | - HttpContext.Current.Session("ReportingInitialized") = True |
|
| 52 | - End Sub |
|
| 53 | - |
|
| 54 | - 'Add custom settings below |
|
| 55 | - Public Overrides Sub ConfigureSettings() |
|
| 56 | 49 | AdHocSettings.AllowDataFieldsInDescription = True |
| 50 | + HttpContext.Current.Session("ReportingInitialized") = True |
|
| 57 | 51 | End Sub |
| 58 | 52 | End Class |
| 59 | -``` |
|
| ... | ... | \ No newline at end of file |
| 0 | +``` |
|
| 1 | + |
|
| 2 | +##Performance |
|
| 3 | + |
|
| 4 | +Due to the nature of the feature that this setting controls, additional trips to the server need to be made in order to support the feature. If you think that this would adversely affect performance of your application, you can opt to turn this feature off. |
|
| ... | ... | \ No newline at end of file |