Orders and Filters in Grids for Smart DevicesOfficial Content

When business data is displayed on a Grid control, it is possible to present information in a clear way pursuant to criteria applied by developers based on the contents of the attributes and variables included in the Work With for Smart Devices object or Panel for Smart Devices object. In order to achieve that aim exists the Data properties group.

Data properties group

Property Description
Orders property Allows specifying the orders in which the information should be listed, grouping information according to a specific value (break by).
Search property Defines filters for search (including advanced search) allowed in regards to the data.
Conditions property  Field (and section as well) for filtering data by conditions that can be used freely and independently from the interface.
Base Trn property Specifies which transactions will navigate the grid control.

Example

Consider PropertyRealState Transaction object to represent the properties handled by a real estate.

Orders and Filters - Transaction

After applying Work With for Smart Devices pattern in this transaction, GeneXus offers by default on the List node an order, search and filter conditions for the Grid control based on the types of attributes contained in the structure of the Transaction.

Orders and Filters - Run and design time

If we consider this default information offered by the pattern, we may conclude the following:

  • The list will be sorted by property name.
    Orders and Filters - Runtime - Orders
     
  • Searches will be possible inside the fields PropertyName and PropertyAddress, meaning that what the user enters in the Search will be searched within that information:
    Orders and Filters - Runtime - Simple search
     
  • There will be possibilities to filter by the attributes PropertyListingDate (in this case offering to select Date From and Date Up To), PropertyOperation (offering the elements of the Operation enumerated, namely: Sale and Rent), and NeighborhoodId, to filter by neighborhood (where something like a selection list will be opened since it is FK):
    Orders and Filters - Runtime - Advanced search (filters)

Sample

This example is available on RealEstate.

 



Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.