A convenient tool for customizing a date filter when working with lists is one «must have» function for a business application. Xafari includes a ready-to-use visual control allowing to specify any range of dates for filtering data in the List View in a XAF-applicaton.
To see the PeriodStructPropertyEditor in action, refer to the Main|Documents|Orders section in the Xafari Northwind demo installed with Xafari.
The date range for the filter can be defined by selecting the start date and the end date directly. Editor checks that the value Begin of interval does not exceed the value End of interval. Invalid input values are displayed in gray and you can not install them.
In addition to this method, it is possible to quickly select such periods as the current year, current quarter, current month, week, or day. It is possible to combine multiple selections.
This control also supports the use of the time period as a whole, without the need to specify the start and end dates.
In addition to the above use options, it is possible to configure the filter to extract the values related to all dates from the beginning of the specified period till the current moment.
To learn more about the PeriodStructPropertyEditor, refer to the following documents: