Roger Blanchard
447 posts
Registered:
29 Jun 2018
19 Jan 2019
Link to this post
We are using the SmartBusinessEntityAdapter "BeforeUpdateRecord" to assign a "calculated field" to TRUE. When the changed record gets to the backend the value of this calculated field does not match what we are setting it to on the front end. I have confirmed the value is correct after the code below. Should this work or do we need to drop a field on the form in order for it to work?
/*------------------------------------------------------------------------------
Purpose: Called before we update the record. We will use this to set the AddToCounts
flag so the backend knows we are not replacing.
Notes:
------------------------------------------------------------------------------*/
METHOD PRIVATE VOID AdjLineAdapter_BeforeUpdateRecord( INPUT sender AS System.Object, INPUT e AS Consultingwerk.SmartComponents.Implementation.BeforeUpdateRecordEventArgs ):
ASSIGN
e:BufferHandle:BUFFER-FIELD ("AddToCounts"):BUFFER-VALUE = TRUE
.
END METHOD.