C# 如何在persist()上添加新行
您好,我目前正在进行一项定制,我想问一下,是否有可能在“持久化”上添加一个新行 我想从inventoryID选择器添加WTAX 谢谢你的帮助,我不知道如何开始编码这个特定的定制C# 如何在persist()上添加新行,c#,acumatica,C#,Acumatica,您好,我目前正在进行一项定制,我想问一下,是否有可能在“持久化”上添加一个新行 我想从inventoryID选择器添加WTAX 谢谢你的帮助,我不知道如何开始编码这个特定的定制 public delegate void PersistDelegate(); [PXOverride] public void Persist(PersistDelegate baseMethod) { //I dont know what code to put her
public delegate void PersistDelegate();
[PXOverride]
public void Persist(PersistDelegate baseMethod)
{
//I dont know what code to put here code to add new row
baseMethod();
}
找到解决方案:
你需要展示你的一些或者至少是一些
PXCache cache = Base.Transactions.Cache;
APTran line = new APTran();
cache.Insert(line);