You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Step 1: Create a Search Form

ขั้นตอนที่ 1: สร้างแบบฟอร์มการค้นหา

  • Create a new form and pre-populate the "id" with current user's username. This is so that the Calendar Menu would be able to locate the exact search value using current Logged In User's ID later on.

    สร้างแบบฟอร์มใหม่และเติม "id" ด้วยชื่อผู้ใช้ปัจจุบัน นี่คือเพื่อให้เมนูปฏิทินจะสามารถค้นหาค่าการค้นหาที่แน่นอนโดยใช้ ID ผู้ใช้ที่ล็อกอินปัจจุบันในภายหลัง

Step 2: Add a Form UI Menu into UI 

ขั้นตอนที่ 2: เพิ่มเมนู UI  แบบฟอร์มลงใน UI 



  • With the form created, we can now make it available to the end user.

    ด้วยการสร้างฟอร์มเราสามารถทำให้ผู้ใช้ปลายทางสามารถใช้งานได้

  • Add a Form Menu to the UI .

    เพิ่มเมนูแบบฟอร์มไปที่ UI 

  • In "URL Redirect After Form Submission", key in a unique custom ID such that it will redirect to the Calendar menu.

    ใน "การเปลี่ยนเส้นทาง URL หลังจากส่งแบบฟอร์ม" ให้ป้อนรหัสที่กำหนดเองที่ไม่ซ้ำซึ่งจะเปลี่ยนเส้นทางไปยังเมนูปฏิทิน

  • The rationale here is that user will fill up the search form, submit the form, and gets redirected to the calendar that is filtered by the user.

    เหตุผลที่นี่คือผู้ใช้จะกรอกแบบฟอร์มการค้นหาส่งแบบฟอร์มและได้รับการเปลี่ยนเส้นทางไปยังปฏิทินที่ถูกกรองโดยผู้ใช้

Step 3: Configure the Calendar to filter

ขั้นตอนที่ 3: กำหนดค่าปฏิทินเพื่อกรอง

  • Make use of binder such as "Advanced Form Data Binder".

    ใช้ประโยชน์จากสารยึดเกาะเช่น "Advanced Data Data Binder"

  • Under "Filter Conditions", add in as much row as needed to.

    ภายใต้ "เงื่อนไขการกรอง" ให้เพิ่มแถวมากเท่าที่จำเป็น

  • Choose the appropriate field that you want to filter.

    เลือกฟิลด์ที่เหมาะสมที่คุณต้องการกรอง

  • Set operator to "Like" to return matching value.

    ตั้งค่าโอเปอเรเตอร์เป็น "ถูกใจ" เพื่อคืนค่าการจับคู่

  • And, in value, we can make use of form hash variable to obtain the value from the search form.

    และตามค่าเราสามารถใช้ตัวแปรแฮชฟอร์มเพื่อรับค่าจากฟอร์มการค้นหา

    Sample Value
    %#form.j_meetingsearch.title[{currentUser.id}]#%

Related Elements

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




  • No labels