Versions Compared

Key

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

...

Thai

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

Image RemovedImage Added

  • Create a new form and pre-populate the "id" with current user 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.

    Thai

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

...

Thai

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

Image RemovedImage Added
Image Added

Image RemovedImage Added

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

    Thai

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

  • Add a Form menu to the Userview.

    Thai

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

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

    Thai

    ใน "การเปลี่ยนเส้นทาง 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.

    Thai

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

...

Thai

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

Image RemovedImage Added

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

    Thai

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

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

    Thai

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

  • Choose the appropriate field that you want to filter.

    Thai

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

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

    Thai

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

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

    Thai

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

    Code Block
    titleSample Value
    %#form.j_meetingsearch.title[{currentUser.id}]#%

...