Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article describes the ways to filter records based on the value in the request parameter.本文介绍了根据请求参数中的值筛选记录的方法。


Figure 1: Designing in Datalist Builder - Determine the column name

First of all, determine the column name that you would like to filter. In the example as depicted above (Figure 1), we are going to use "approval" as the column to be filtered.

Image Removed
Figure 2: Designing in Datalist Builder - Adding the filter

图1:在Datalist Builder中进行设计 - 确定列名称

首先,确定要过滤的列名称。在上面的示例(图1)中,我们将使用“approval”作为要过滤的列。

Image Added
图2:在Datalist Builder中进行设计 - 添加过滤器

然后,去DataSource,并添加适当的额外过滤条件Then, go to Source, and add in the appropriate Extra Filter Condition.

Code Block
e.customProperties.approval = '#requestParam.status#'


Figure 3: Designing in Datalist Builder - Adding the filter图3:在Datalist Builder中进行设计 - 添加过滤器

也可以在使用It is also possible to add the filter in when you are using the Advanced Form Row Data Binder as depicted in Figure 3. 添加过滤器,如图3所示

Figure 4: Filtering in UserviewAs depicted in Figure 4, the listing will now take the request parameter "status" into consideration now when displaying the records.

图4:用户视图中的过滤

 如图4所示,列表现在将在显示记录时考虑请求参数“status”。