API/CodeSamples/AllowFieldsAsValue.md
... ...
@@ -7,6 +7,7 @@
7 7
Gets or sets the value indicating whether field name is allowed in filter value. This will enable or disable the Field Comparison section of the filter dropdown menu.
8 8
9 9
**Default Value:** true
10
+
10 11
##Global.asax (C♯)
11 12
12 13
```csharp
... ...
@@ -22,7 +23,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
22 23
AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
23 24
AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
24 25
Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
25
- AdHocSettings.AllowFieldsAsValue = true;
26
+ AdHocSettings.AllowFieldsAsValue = true; //The relevant setting
26 27
HttpContext.Current.Session["ReportingInitialized"] = true;
27 28
}
28 29
}
... ...
@@ -45,7 +46,7 @@ Public Class CustomAdHocConfig
45 46
AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
46 47
AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
47 48
Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
48
- AdHocSettings.AllowFieldsAsValue = True
49
+ AdHocSettings.AllowFieldsAsValue = True 'The relevant setting
49 50
HttpContext.Current.Session("ReportingInitialized") = True
50 51
End Sub
51 52
End Class