X4 Produktdokumentation

Filtering

Web Apps created with X4 Web Apps automatically support paging in the grid component. You can use the Filtering within the GridSettings element to set filter conditions server-side.

The default behavior of the grid component is client-side filtering. However, you also have the option to access the data from the client-side filter set in a grid component on the server side.

If the output of the Technical Process that loads the data into the grid component has the following structure:

XML
<OkList size="{/data/@count}">filter value</OkList>

then the input of the same Technical Process contains information about the active filter:

<?xml version="1.0" encoding="UTF-8"?>
<Search limit="100" offset="0">
   <Component>Grid</Component>
   <OrderBy/>
   <Where>
      <Contains>
         <Property>filter value</Property>
         <Value type="String">filter value</Value>
      </Contains>
   </Where>
...