在套件组件屏幕中,一旦我释放套件组件,我就永远不能更新INKitAssembly,
但是我必须允许KitAssembly扩展表字段更新。如何允许更新INRegister(InKitAssembly)扩展表中添加的自定义字段?
有没有办法在Release操作完成时更新InKitAssembly扩展表字段,Release kitAssembly长操作完成后有没有回调委托?
发布于 2020-05-28 00:58:41
更新INReleaseProcess持久化中的扩展值应该是可行的。如下所示:
public class INReleaseProcessExte : PXGraphExtension<INReleaseProcess>
{
[PXOverride]
public virtual void Persist(Action del)
{
foreach (INTran row in Base.intranselect.Cache.Updated)
{
if (row?.DocType != INDocType.Production || row.Released != true)
{
continue;
}
// update your extension here
var inTranExt = PXCache<INTran>.GetExtension<INTranMyExtension>(row);
inTranExt.MyField = "X";
Base.intranselect.Update(row);
}
del?.Invoke();
}
}https://stackoverflow.com/questions/61660919
复制相似问题