CodeSamples/ShowBetweenDateCalendar.md
... ...
@@ -0,0 +1,90 @@
1
+#ShowBetweenDateCalendar
2
+
3
+Gets or sets the value indicating whether calendar controls should be used for the "Between" operation for DateTime filters.
4
+When enabled, the Between(Calendar) option appears in the Operator dropdown at the Filters tab in the ReportDesigner for DateTime fields. If it is disabled, the option "Between" without "(Calendar)" will be displayed instead. By default, the Between(Calendar) option uses short date notation(unable to specify a time of day) whereas the standard Between option will allow datetimes to be specified.
5
+
6
+Default value: true
7
+
8
+##C♯
9
+
10
+```csharp
11
+<%@ Application Language="C#" %>
12
+<%@ Import Namespace="Izenda.AdHoc" %>
13
+
14
+<script runat="server">
15
+
16
+ void Session_Start(object sender, EventArgs e)
17
+ {
18
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
19
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
20
+ }
21
+
22
+ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
23
+ {
24
+ // Configure settings
25
+ // Add Custom Setting below license key and connection string setting
26
+ public override void ConfigureSettings()
27
+ {
28
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
29
+ //AdHocSettings.VisibleTables = new string[] { "VIEW1", "TABLE2" };
30
+ AdHocSettings.ShowBetweenDateCalendar = true;
31
+
32
+ }
33
+
34
+ // Control what reports are visible for the current user
35
+ public override Izenda.AdHoc.ReportInfo[] ListReports()
36
+ {
37
+ return base.ListReports();
38
+ }
39
+
40
+ // Customize a report on the fly prior to execution on a per user basis
41
+ public override void PreExecuteReportSet(Izenda.AdHoc.ReportSet reportSet)
42
+ {
43
+
44
+ }
45
+
46
+ }
47
+</script>
48
+```
49
+
50
+##VB.NET
51
+
52
+```visualbasic
53
+<%@ Application Language="VB" %>
54
+<%@ Import Namespace="Izenda.AdHoc" %>
55
+
56
+<script runat="server">
57
+
58
+ Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
59
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
60
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
61
+ End Sub
62
+
63
+ Public Class CustomAdHocConfig
64
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
65
+
66
+ ' Configure settings
67
+ ' Add Custom Setting below license key and connection string setting
68
+ Public Overrides Sub ConfigureSettings()
69
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
70
+ 'AdHocSettings.VisibleTables = New String() { "VIEW1", "TABLE2" }
71
+ AdHocSettings.ShowBetweenDateCalendar = True
72
+
73
+ End Sub
74
+
75
+ ' Control what reports are visible for the current user
76
+ Public Overrides Function ListReports() As Izenda.AdHoc.ReportInfo()
77
+ Return MyBase.ListReports
78
+ End Function
79
+
80
+ ' Customize a report on the fly prior to execution on a per user basis
81
+ Public Overrides Sub PreExecuteReportSet(ByVal reportSet As Izenda.AdHoc.ReportSet)
82
+
83
+ End Sub
84
+
85
+ End Class
86
+
87
+</script>
88
+```
89
+
90
+##Screenshots