Use of dsHolder.Attach returns previous data

,

I’ve written a BPM that updates the demand warehouse on an order release when the ship to is changed. When doing the individual releases (and creating new releases) it works fine.

When doing the main order which then processes all of the releases, the data is changing in the Db, but not the form. If I hit refresh then everything is fixed and correct.

I tried doing the dsHolderAttatch() in the Post Processing (MasterUpdate) BPM but when I do it basically undoes the changes made to the release (and the header). I think it’s a timing issue, but I don’t know how to do the change and refresh the form.

It was a timing issue. MasterUpdate gets called twice. I was able to isolate the second time and the code then worked.