การทำงานคือจะทำให้อีก Form ที่มี Grid แสดงข้อมูล ของ Code หรือ Item ที่เลือกเท่านั้น เช่น มี Tab 2 Tab คือ Overview และ Line เมื่อคลิ๊กที่ Item Overview แล้วเลือก Tab Line ก็ให้แสดงข้อมูลใน Line เฉพาะ ของ Item หรือ code นั้น ๆ
1. ทำการ Join Table ที่ Data Sources ที่ Table รองตามรูป
2. ทำการสร้าง Relation ที่ Table รอง ด้วยการ New ---> Normal ตามรูป

3. กำหนด Field และ RelatedField โดยเลือกตาม Field ที่ใช้ Primary ที่เป็นตัวหลัก ตามรูป

ทดลองรัน Form ดู ครับ
ไม่มีความคิดเห็น:
แสดงความคิดเห็น