I am working in Epicor 10.2.7 version. I have a checkbox in Purchase Order named Approve. I have been trying to change its customization so that the checkbox is disabled or becomes read only after an user has updated it by ticking the checkbox, i.e. once a user ticks the checkbox, no other user should be able to change it. For that I need to disable the checkbox. Since that checkbox is not a custom made one and was already available in Purchase Order, whatever method/code I try doesn’t seem to be working. I had tried the below code too which did not work. Not sure if this was the right way. It is going inside both the conditions though. Is there any other way to implement this?
if((bool)view.dataView[args.Row][“Approve”] == true)
{
MessageBox.Show(“Inside first”);
if (edvPOHeader.dataView.Table.Columns.Contains(“Approve”))
{
MessageBox.Show("Inside second");
edvPOHeader.dataView.Table.Columns["Approve"].ExtendedProperties["Read Only"] = true;
}
}