[英]Acumatica Programmatically getting sum of values from table
Visual Studio報告由於在FieldDefaulting事件處理程序中間拋出PXException而導致的無法訪問的代碼:
throw new PXException("Total is "+dec);
要分析中間值,您可以看一下PXTrace類。 下面的示例顯示了如何在Acumatica跟蹤值中生成銷售訂單描述的生成值:
public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
public void SOOrder_OrderDesc_FieldDefaulting(PXCache sender, PXFieldDefaultingEventArgs e)
{
var testDescr = "Test Order Description";
PXTrace.WriteInformation(string.Format("Sales Order Description: {0}", testDescr));
e.NewValue = testDescr;
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.