bcfbc5b7035636ee94c1d642506d18f14b344a1b
API/CodeSamples/AllowComparativeArithmetic.md
| ... | ... | @@ -6,6 +6,8 @@ |
| 6 | 6 | |
| 7 | 7 | Gets or sets the value indicating whether comparative arithmetic is allowed in arithmetic checkbox. Logical comparisons (less than and greater than) can be used between the preceding field and the selected field when cycling through values on the "A" checkbox of the report designer. Certain datatypes behave differently when this is enabled. |
| 8 | 8 | |
| 9 | +**Default Value:** false |
|
| 10 | + |
|
| 9 | 11 | ##Global.asax (C♯) |
| 10 | 12 | |
| 11 | 13 | ```csharp |
| ... | ... | @@ -21,7 +23,7 @@ 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 | - AdHocSettings.AllowComparativeArithmetic = true; |
|
| 26 | + AdHocSettings.AllowComparativeArithmetic = true; //The relevant setting |
|
| 25 | 27 | HttpContext.Current.Session["ReportingInitialized"] = true; |
| 26 | 28 | } |
| 27 | 29 | } |
| ... | ... | @@ -44,7 +46,7 @@ Public Class CustomAdHocConfig |
| 44 | 46 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 45 | 47 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 46 | 48 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 47 | - AdHocSettings.AllowComparativeArithmetic = True |
|
| 49 | + AdHocSettings.AllowComparativeArithmetic = True 'The relevant setting |
|
| 48 | 50 | HttpContext.Current.Session("ReportingInitialized") = True |
| 49 | 51 | End Sub |
| 50 | 52 | End Class |