We have been asked to pre-populate the notes field on the End Labor Activity form under certain conditions. This field is populated by LaborDtl.LaborNotes (table.column). We want the field to be pre-populated only when the LaborDtl.DiscrpRsnCode becomes populated. This happens when the Reason… button next to the Non-Conform Qty button is clicked and a reason code is selected.
We have tried using a trace to see if a bo call to reason codes or something similar happens on that button click. Unfortunately, we do not see it in our trace. Is there something we are missing that we can hit off of in this instance?
We want to avoid customizations to the module/form.
@dgreenEA This is in the BO file from epicweb, I would put an info message on it to see if it does fire and possibly use it post processing to carry the data to end activity.
Thanks for the quick replies. I tried both the Labor.DefaultDiscrpRsnCode and the Labor.Update pre-process options. Both of these populate the table field after the labor transaction has been closed. It does not seem to populate the Note’s section before the user can start typing.
Is there a way to get this to populate before the user types?
@dgreenEA Did you try post processing on the DefaultDiscrpRsnCode? I would think that was the best shot as post is going from server back to the client.
You may have to also use the dsHolder.Attach(ds) to refresh the screen.