Axapta 如何使用x++;
我找不到引用SalesInvoice报表数据源的CustInvoiceTrans表的正确语法 以下是上下文:我在InnovateGroup表上创建了一个新的分类字段,需要从该字段获取发票上每个项目的数据,然后在发票的标题上汇总这些数据。查看SalesInvoice报告的方法fetch()Axapta 如何使用x++;,axapta,Axapta,我找不到引用SalesInvoice报表数据源的CustInvoiceTrans表的正确语法 以下是上下文:我在InnovateGroup表上创建了一个新的分类字段,需要从该字段获取发票上每个项目的数据,然后在发票的标题上汇总这些数据。查看SalesInvoice报告的方法fetch() while (tradeLoopTrans.next()) { custInvoiceTrans = tradeLoopTrans.get(tablenum(CustInvoiceTrans));
while (tradeLoopTrans.next())
{
custInvoiceTrans = tradeLoopTrans.get(tablenum(CustInvoiceTrans));
// ....
this.send(custInvoiceTrans);
custInvoiceTrans是一个将在报告中打印的每个发票行
接下来看一下设计,部分组:CustInvoiceJour->部分组:CustInvoiceTrans。以下是所有字段,将打印这些字段
因此,您需要:
- 在CustInvoiceTrans表上创建显示方法:
此方法返回每个CustInvoiceTrans的分类display str getClassification() { InventTable table = InventTable::find(this.ItemId); InventItemGroup grp = InventItemGroup::find(teble.ItemGroupId); ; return grp.new_field }
- 在报告设计上,在“节组:custinovicetrans”上创建一个新字段。
DataSource=CustInvoiceTrans DataMethod=getClassification