Versions Compared

Key

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

Form ID

Table Name

leaveApplication

leave_application

leaveDetails

leave_details

English
Relationship: In this example,  the 'parent' form (leave application) has one 'child' form (leave details).
Thai

ความสัมพันธ์: ในตัวอย่างนี้ฟอร์ม 'พาเรนต์' (ออกจากแอปพลิเคชัน) มีหนึ่งฟอร์มย่อย (ออกรายละเอียด)

...

Thai

การสร้างแบบฟอร์มย่อย: ออกจากรายละเอียด

Image RemovedImage Added


First, you will need to create a child form or the form that you would want to embed in your parent form. In the child form, add a field that will be used to store the ID of the parent form. In this example, we added the field leave_application_id.

...

Thai

ก่อนอื่นคุณจะต้องสร้างแบบฟอร์มย่อยหรือแบบฟอร์มที่คุณต้องการฝังในแบบฟอร์มหลัก ในฟอร์มย่อยให้เพิ่มเขตข้อมูลที่จะใช้ในการจัดเก็บ ID ของฟอร์มหลัก ในตัวอย่างนี้ leave_application_id

การสร้างแบบฟอร์มผู้ปกครอง: ออกจากแอปพลิเคชัน

Image RemovedImage Added


In the parent form, you can (optionally) add a field that will be used to store the ID of the child form. In this example, the field leave_details_id has been added. This is only needed in situations where there is a one-to-one relationship between the parent form and the child form. You can then embed your child form in the parent form by dragging the Sub Form form element into the section that you want the subform to appear in.

...

Thai

ในฟอร์มหลักคุณสามารถ (เป็นทางเลือก) เพิ่มฟิลด์ที่จะใช้ในการจัดเก็บ ID ของฟอร์มย่อย ในตัวอย่างนี้มีการเพิ่มฟิลด์ leave_details_id สิ่งนี้จำเป็นเฉพาะในสถานการณ์ที่มีความสัมพันธ์แบบหนึ่งต่อหนึ่งระหว่างแบบฟอร์มหลักและแบบฟอร์มย่อย คุณสามารถฝังฟอร์มลูกของคุณในแบบฟอร์มหลักโดยการลากองค์ประกอบฟอร์ม Sub Form ลงในส่วนที่คุณต้องการให้ฟอร์มย่อยปรากฏ

การเชื่อมโยงแบบฟอร์มย่อยกับแบบฟอร์มผู้ปกครอง

Image RemovedImage Added

Image RemovedImage Added

To link the child form to its parent, you will need to edit the properties of the subform input that you added to your parent form in the previous step. The following fields are available:

...