In the MES screen, in End Activity, a check is required to ensure that a Quality-control field is not populated by an unauthorized operation. To do this, the field value is checked to ensure it’s null. I’m able to clear out the screen value but when viewing the record after the transaction, the unwanted value is saved.
The code snippet below shows the test to see if an operator entered a value into the field, and to clear it if they did. The edvEnd.dataView[edvEnd.Row] code is remarked out because it didn’t work to remove the value saved.
//Clear Rockwell entered by unauthorized operation
if (txtRockwell.Text != “”)
txtRockwell.Text = “”;
// edvEnd.dataView[edvEnd.Row][“MtlInspRockwell_c”] = “”;
MessageBox.Show(“Rockwell entry cleared for Non-Inspect Operation.”);