UD Fields Read Only and uneditable on PO Entry after approved


I know similar has been discussed on other Entry screens but…

On the PO Entry screen (POHeader) I have added a couple of UD fields, when the PO is approved the fields become ReadOnly and uneditable

I have managed to make them “Enabled” so I can tick the checkbox, but when I save, it errors out and says “This field cannot be updated because the PO is approved”

Does anyone know how to successfully overcome the Epi(not so)magic logic

One way to address is to add a UD table as a child using the customization wizard, then add the UDFs to the UD table. The wizard will create the data view to bind the UI controls. This way, the records are related but the fields don’t follow the same rules.
I’ve used this approach with other tables that have rules about the editablity based on state(order, job, …)

1 Like

Thank you for the reply, I was sort of hoping that this wouldn’t be the answer…

Np, it’s really not that bad and can usually be done with the wizard alone.
Let me know if you hit any issues.

The other option is much worse…

Ok, I got it sorted, I ended up doing a BO Adapter for a UD table, the customization sends enough info from the PO Entry across to the UD table to … print a PO and attach it to an HTML email and attach any attachments from the PO entry screen and send it

I was trying to use a UD field on the PO Header to trigger it but the BO Adapter does that now