Contents tagged with PrepareInsert
Few notes about PXAccumulatorAttribute
If to inherit from PXAccumulatorAttribute, you'll have access to member _SingleRecord. If to set in constructor to true, you'll configure single record update mode.
There is PrepareInsert method. This method intended for updating policy for the data fields.
PrepareInsert is invoked within Persist method, before Acumatica framework generates SQL commands for inserted data records.
Among paramethers of PrepareInsert method there is PXAccumulatorCollection, which has method Update. In this method it's possible to configure fields which will be updated during PrepareInsert
Method Update has following policies: PXDataFieldAssign.AssignBehavior. … more