In a post process directive I’m setting some UD fields in ProjectCst. I do a GetByID, some custom code to set the values, and then setters to fill the fields. All good. But it doesn’t save when I update the dataset. The values display in the form until I do a refresh, and then they return to what they were before.
I figured I might need to set RowMod before the update, but I don’t see one in the new “ds.” temp tables.
Since these are UD fields I could just use Db.Validate() in the code, but I’d like to know how to do it through the BO.
I did a GetByID on the ds tableset, set the fields, and then did an Update. I see the tables, but they don’t include a RowMod field to set to “U” so they would update. I haven’t had this issue before, and I’ve not had to set RowMod either.
Yes, this is in a post-process directive.
I’ve solved the immediate problem by doing it in code with a Db.Validate(), and then running another GetByID to bring the changes into the dataset. I don’t mind doing that on UD fields, but wondering if I can set a system field like this down the road.