Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
English
This article describes the ways to filter records based on the value in the request parameter.
Thai

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


Image RemovedImage Added


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

...

Thai

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

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


Image RemovedImage Added


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.

...

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

Image RemovedImage Added



Figure 3: Designing in Datalist Builder - Adding the filter

...

Thai

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

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


Image RemovedImage Added


Figure 4: Filtering in Userview

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

...