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.

Thai

บทความนี้อธิบายวิธีการกรองระเบียนตามค่าในพารามิเตอร์การร้องขอ



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.

Thai

รูปที่ 1: การออกแบบในตัวสร้างดาต้าลิสต์ - กำหนดชื่อคอลัมน์

ก่อนอื่นกำหนดชื่อคอลัมน์ที่คุณต้องการกรอง ในตัวอย่างตามที่อธิบายไว้ข้างต้น (รูปที่ 1) เราจะใช้ "การอนุมัติ" เป็นคอลัมน์ที่จะถูกกรอง



Figure 2: Designing in Datalist Builder - Adding the filter

Then, go to Source->Select Source of Data (Binder) (Advanced Form Data Binder)->Advanced, and add in the appropriate Extra Filter Condition.

Thai

รูปที่ 2: การออกแบบในตัวสร้างดาต้าลิสต์ - การเพิ่มตัวกรอง

จากนั้นไปที่แหล่งที่มาและเพิ่มในเงื่อนไขตัวกรองพิเศษที่เหมาะสม

Code Block
e.customProperties.approval = 'Approved'



Figure 3: Designing in Datalist Builder - Adding the filter

It is also possible to add the filter in when you are using the Advanced Form Row Data Binder as depicted in Figure 3.


Thai

รูปที่ 3: การออกแบบในตัวสร้างดาต้าลิสต์ - การเพิ่มตัวกรอง

นอกจากนี้ยังเป็นไปได้ที่จะเพิ่ม Advanced Form Row Data Binder แถวข้อมูลขั้นสูงของแถวตามที่แสดงในรูปที่ 3



Figure 4: Filtering in Userview

As depicted in Figure 4, the listing will now take the word "Approved" into consideration now when displaying the records.

Thai

รูปที่ 4: การกรองใน Userview

ดังที่ปรากฎในรูปที่ 4 ตอนนี้รายชื่อจะนำพารามิเตอร์คำขอ "สถานะ" มาพิจารณาด้วยทันทีเมื่อแสดงระเบียน