In the previous section, you saw how to define the form and search criteria. You will now see how to configure the results display.
To do this, you are going to use a hidden request because the user cannot interact with it.
This XML block should be placed in the ComponentSearchPresenter
bean, at the same level as the advancedCriteriaPresenter
property.
This hidden search is defined using the hiddenRequest
property:
<property name="hiddenRequest">
<bean class="com.flower.docs.domain.search.SearchRequest">
<!-- Ajoutez ici les différentes parties décrites dans la suite -->
</bean>
</property>
Columns to be displayed
Place the SelectClause
property in the SearchRequest
bean. Set this property as below to display the table columns:
Filter
Place the filterClauses
property after the selectClause
property. Set the filterClauses
property as below to search client folders:
- The
STRING
type is used to specify that the search criterion will be a character string, - The
EQUALS_TO
operator will be responsible for client folder feedback, - the customer files to be searched will be of the
ClientFile
type,
Sorting
FlowerDocs allows results to be sorted according to techniques and tags.
In this case, you will sort the result according to the creationDate
property, which is the date on which the customer files were created.
Use the orderClauses
property to define the sorting of customer files from most recent to oldest:
The number of results returned by the search. This property allows you to set a default number of results to be displayed per result page:
<property name="max" value="25" />