我正在学习动态ax 2012,我需要在salesTable中找到与CustInvoiceJour记录对应的数据。
方法CustInvoiceJour.salesTable是返回整个表还是关联的记录?
答案 0 :(得分:3)
它返回一个销售表缓冲区,其中包含与客户发票日记帐关联的记录。
答案 1 :(得分:0)
函数的返回类型是tablebuffer,因为tablebuffer类型salesTable是从函数返回的,因为custIvoicejour和salesTd上的salesTd字段之间存在外键关系。
SalesTable salesTable = SalesTable :: find(this.SalesId,_update);
salestable buffer是从custinvoicejour当前缓冲区字段值this.salesId中找到的,它传递给salestable函数find,返回salestable buffer包含字段值。
const pipeline = [
{ $match: query } // first pipeline stage
]