I have a custom DAC field bound to a checkbox, but when I update the value of the field within code:
SOOrderExtension orderExt = PXCache<SOOrder>.GetExtension<SOOrderExtension>(row);
orderExt.UsrSignatureRequired = true;
the checkbox check is not updated on the UI. First I tried adding this line in the FieldUpdated event because this has worked for me before:
Base.Document.Update(row);
That didn’t work. Then I tried a suggestion I found on StackOverflow that forces a save and cache refresh, but my row (SOOrder) can’t save yet due to some validation rules, so that didn’t work. I think I need some kind of callback to the client to tell the UI to update itself, but usually this happens through events of bound fields. Suggestions?
Using v6.10.1219