I was having an issue in my Sales Order Entry customization, which I had modified to include Child UD Table records. The data is being populated outside the customization in a BPM, trigged by a OrderHed UDF value and oTrans.Update.
However, after the child records were created the did not show in Sales Order Entry until after I cleared and refreshed the form, or moved to another order.
After reading some old post I had an idea of how to correct the issue.
I created a boolean variable, bForceRefresh, that I set when I want the UD table records to refresh. Then set it to true and call the GetUDxx method, which was created with the Customization Wizard’s Child UD Table functionality.
I then modified the GetUDxx method, which is verifying that the keys have changed, to include an OR statement which looks at the bForceRefresh. If it is set, it performs the refresh anyway, which is what want.
I am going to reply to my message with some code segments.
I’m not positive about this, but I personally, would want the oTrans.Refresh(); to happen AFTER the GetUD02Data call rather than before it. Just seems to me to make more sense to refresh the screen after the data change. But I definitely could be wrong