I’ve been puzzling through this issue and I’m not sure where to go for figuring this out.
Action button on Sales Order Maint will
- Create a record in a custom table.
- Load up the graph for that custom table and press an action button.
- Custom graph passes it’s record into a method to be updated.
- Custom graph passes it’s record into a second method to be updated. But it loses changes coming out of the second method. It’s almost like the record is passed into the second method as a copy instead of a reference to the record.
If, however, I open up the graph for the custom table and click on the action button - the above process works just fine. My Order Entry customization is literally pressing the action button on the custom graph.
I’m using this form for updating the field values to try and ensure that the correct cache is being updated.
myCustomGraph.Cachesmtypeof(MyDAC)].SetValueExt<MyDAC.myField>(myRecord, SomeValue);
and
myRecord = myCustomGraph.Cachesmtypeof(MyDAC)].Update(myRecord);
So I think I’m curious on what I might look out for to figure out why myRecord is losing/forgetting changes when being run from the Order Entry button but retains it when running the process from the Custom Graph button.