7/24/2016

Axapta X++ : link type เอา สร้าง Data Source มาแสดงข้อมูล

Axapta X++ : link type เอา สร้าง Data Source มาแสดงข้อมูล
Axapta X++ : link type เอา สร้าง Data Source มาแสดงข้อมูลใน Forms
เช่น
- New Data Sources ที่ Forms CusInvoiceJournal
- ใส่ชื่อ เป็น CustTrans Set Properties ดังนี้
Table เลือกเป็น CustTrans
JoinSource เลือกเป็น CustInvoiceJour
LinkType เลือกเป็น Inner Join

ความหมายของ LinkType :
LinkType : Forms have 3 additional join modes which are use to makes forms more users friendly : Passive, Delay and Active
รูปแบบที่มี 3 โหมดเข้าร่วมเพิ่มเติมที่มีการใช้งานเพื่อทำให้รูปแบบที่เป็นมิตรกับผู้ใช้มากขึ้น: Passive, Delay และ Active

Active: The data source is updated immediately when a new record in the parent data source is selected. Continuous updates consume lots of resources.
Active:  แหล่งข้อมูลที่มีการปรับปรุงทันทีเมื่อสร้างสถิติใหม่ในแหล่งข้อมูลหลักจะถูกเลือก การปรับปรุงอย่างต่อเนื่องใช้ทรัพยากรจำนวนมาก
Passive: Linked child data sources are not updated automatically. Updates of the child data source must be programmed on the active method of the master data source.
Passive: การเชื่อมโยงแหล่งข้อมูลรองจะไม่ได้รับการปรับปรุงโดยอัตโนมัติ การปรับปรุงแหล่งข้อมูลของรองที่ต้องมีโปรแกรมอยู่กับวิธีการใช้งานของแหล่ง ข้อมูลหลัก

Delayed: A pause is inserted before linked child data sources are updated. This enables faster navigation in the parent data source because the records from child data sources are not updated immediately.
Delayed: หยุดก่อนที่จะถูกแทรกการเชื่อมโยงแหล่งข้อมูลรองที่มีการปรับปรุง ซึ่งจะช่วยให้การนำงานได้เร็วขึ้นในแหล่งข้อมูลหลักเพราะข้อมูลจากแหล่ง ข้อมูลรองไม่ได้รับการปรับปรุงทันที

Passive, Delay และ Active จะทำงานเมื่อมีการ Click Forms หรือมีการ Update Line เท่านั้นไม่ได้แสดงผลทั้งหมดเหมือน Mode Join

Mode Join ใช้งานบ่อย

Inner join
Inner join form data source link type displays the rows that match with parent table and child table. For example if the order doesn't has any order details then the order will not be display.
Inner join จาก data source link ชนิดดูแถวที่เหมือนกันกับ Table หลักและ Table รอง สำหรับตัวอย่าง ถ้าข้อมูลไม่มีข้อมูลที่เหมือนกัน จะไม่แสดง


Outer join
Outer join form data source link type will return all parent records and matched child records. It will return all rows in the parent table. Here, Order 4 doesn't has the child records (order details) but it is populating in the order grid. It is the difference between inner join and outer join.

Outer Join ข้อมูล Link ชนิดนี้จะ return ทั้งหมดของ records Table หลัก และที่เหมือนกับข้อมูล Table รอง มันจะ แสดงทั้งหมดทุกแถวใน Table หลัก เช่น ....

Exist join
Exist join form data source link type return matched rows of the parent table. It behaves like inner join but the different is once parent row matched with child records then stop the process and update in the grid, Ax won't consider how many records in child table for the parent row.

Exist join ข้อมูล Link ชนิด แสดงข้อมูลที่เหมือนกันของ Tables หลัก มันมีพฤติกรรมเหมือน Inner join แต่ ต่างกันอย่าง 1 คือ Table หลักแถวเหมือนกับแถวของ Table รอง ถ้าไม่เหมือนกันจะหยุดการทำงานและ update ใน grid , Ax ไม่พิจารณาว่าข้อมูลใน Table รองมีมากและ Table หลัก จะหยุดแค่นั้นที่ข้อมูลไม่เหมือนกัน

Not exist join

Not exist join form data source link type is totally opposite method to exist join. It will return the not matched parent records with child records.
Not exist join ข้อมูล link ชนิดนี้ ทั้งหมดตรงข้ามวิธีของ Exist join. มันจะแสดงของที่ไม่มีเหมือนข้อมูลใน Tables หลัก กับข้อมูลใน Table รอง


ที่มาเพิ่มเติม
https://community.dynamics.com/ax/b/axh ... exist-join

http://axapta4u.blogspot.com/2013/06/jo ... xapta.html

No comments:

Post a Comment