Thursday, 3 March 2022

QueryExecuting in D365 F&O

 [FormDataSourceEventHandler(formDataSourceStr(CustPaymEntry, CustTransOpen), FormDataSourceEventType::QueryExecuting)]

public static void CustTransOpen_OnQueryExecuting(FormDataSource sender, FormDataSourceEventArgs e)

{

sender.query().dataSourceTable(tableNum(CustTransIdRef)).addRange(fieldnum(CustTransIdRef,TransRefType)).value(queryValue(CustTransRefType::Invoice));

}

No comments:

Post a Comment

DefaultDimension in d365 FO X++

 Navigate to PurchTable methods you can find with DefaultDimension this.DefaultDimension = this.mergeDimension(this.getDefaultDimension(),th...