Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip
iconfalse
English
In this article, we will use the "URL Request Parameters for
Datalist
List" option of List Grid or Popup Select Box form element to refine the result of popup
datalist
List selection.
Thai

ในบทความนี้เราจะใช้ตัวเลือก "พารามิเตอร์คำขอ URL สำหรับดาต้าลิสต์" ของ List Grid หรือ Popup Select Box เพื่อปรับแต่งผลลัพธ์ของการเลือกดาต้าลิสต์ป๊อปอัพ

First, we will have to create a datalist List and set the filter using Request Param Hash Variable. In this sample, our request parameter name is "group" and we are using Advanced Form Data List Data Store to retrieve form data. You are allow to use other binder Data Store and write your filter condition using Request Param Hash Variable.

Thai

ก่อนอื่นเราจะต้องสร้างดาต้าลิสต์และตั้งค่าตัวกรองโดยใช้ Request Param Hash Variable ในตัวอย่างนี้ชื่อพารามิเตอร์คำขอของเราคือ "กลุ่ม" และเรากำลังใช้ Binder Data Store ข้อมูลของฟอร์มขั้นสูงเพื่อดึงข้อมูลในแบบฟอร์ม คุณได้รับอนุญาตให้ใช้สารยึดเกาะอื่นและเขียนเงื่อนไขตัวกรองของคุณโดยใช้ตัวแปรขอแฮชตัวแปร


After we have our datalist List ready, let make a form as following. In this form, we will have a Popup Select Box and a List Grid which will use the datalist List we just created as popup selection dialog. We will have a select box which will be used to filter the datalist List result and its field id is set to "filter".

...

Configure the "URL Request Parameters for DatalistList" option of Popup Select Box and List Grid as following.

Thai

กำหนดค่าตัวเลือก "พารามิเตอร์คำขอ URL สำหรับ DatalistList" ของ Popup Select Box และ List Grid ดังต่อไปนี้

...

By configure this way, the element will retrieve the configured field value and pass it as a url request parameters to the datalist List when the popup select dialog is open. In this care, the value of "filter" field will pass as the value of "group" parameter. You can configure a default value if you want to. The default value will be used when configured field return empty value.

Let us populate some data to our datalist List for testing.

Thai

ด้วยการกำหนดค่าด้วยวิธีนี้องค์ประกอบจะดึงค่าฟิลด์ที่กำหนดค่าและส่งผ่านเป็นพารามิเตอร์คำขอ URL ไปยังนักข้อมูลเมื่อเปิดกล่องโต้ตอบเลือกป๊อปอัป ในส่วนนี้ค่าของฟิลด์ "ตัวกรอง" จะผ่านเป็นค่าของพารามิเตอร์ "กลุ่ม" คุณสามารถกำหนดค่าเริ่มต้นได้หากต้องการ จะใช้ค่าเริ่มต้นเมื่อฟิลด์ที่กำหนดค่าส่งคืนค่าว่าง

ให้เราเติมข้อมูลบางส่วนไปยังนักทดสอบข้อมูลของเราเพื่อทำการทดสอบ

...

View file
nameAPP_form_how_to_url_params-1-20151119114709.jwa
height150

Related Elements

Thai

องค์ประกอบที่เกี่ยวข้อง

...