Period Struct

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.

Windows Forms:

period_struct_property_editor_1

ASP.NET:

period_struct_property_editor_2

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.

period_struct_property_editor_21

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.

period_struct_property_editor_3

This control also supports the use of the time period as a whole, without the need to specify the start and end dates.

period_struct_property_editor_4

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.

period_struct_property_editor_5

To learn more about the PeriodStructPropertyEditor, refer to the following documents: