在 Acumatica 中上传和附加文件
File upload and attach in Acumatica
我实际上是 Acumatica Framework 的新手。我在了解如何附加文件时遇到了一些问题。问题是在这个答案中 他们谈论
PXNoteAttribute.SetFileNotes(Base.Caches[typeof(DAC)], dacRecord, file.UID.Value);
我不明白他们指的是什么"Base.Caches[typeof(DAC)], dacRecord",我已经保存了文件,但是设置文件的步骤是我的问题...
您需要提供与您的Record 类型对应的Cache 对象和Record 本身。例如,如果您需要将文件附加到 SOOrder
,您将提供如下值:
var currentSOOrder = soOrderEntry.Document.Current;
PXNoteAttribute.SetFileNotes(soOrderEntry.Caches[typeof(SOOrder)], currentSOOrder , file.UID.Value);
我实际上是 Acumatica Framework 的新手。我在了解如何附加文件时遇到了一些问题。问题是在这个答案中
PXNoteAttribute.SetFileNotes(Base.Caches[typeof(DAC)], dacRecord, file.UID.Value);
我不明白他们指的是什么"Base.Caches[typeof(DAC)], dacRecord",我已经保存了文件,但是设置文件的步骤是我的问题...
您需要提供与您的Record 类型对应的Cache 对象和Record 本身。例如,如果您需要将文件附加到 SOOrder
,您将提供如下值:
var currentSOOrder = soOrderEntry.Document.Current;
PXNoteAttribute.SetFileNotes(soOrderEntry.Caches[typeof(SOOrder)], currentSOOrder , file.UID.Value);