Customization EpiTextBox with EpiBinding to JobOperation note -- DataReadOnly grayed out

Hello,

I’m working on a customization on the Job Entry screen.
I have a field that is populated by generic text, which is pulled in based on another field’s value. Users should not interactively change the contents of this field; it should be done using the other field’s value.
My field is an EpiTextBox with EpiBinding to a JobOperation note.

To “shut off” user direct entry/update, I tried using ReadOnly=True. That didn’t work for our purposes.
I have changed Enabled to False, which works to allow no entry but its display is grayed out.
I think what would work best is to turn on DataReadOnly in the EpiBinding section but it is grayed out.

Does anyone know how to turn a field property back on so I can use it?

Thanks,
Karen

Happy to report I solved my own issue…

Added the following line of code in the script editor, under the
private void edvJobOper_EpiViewNotification section:

view.dataView.Table.Columns[“JobGenTxt_c”].ExtendedProperties[“ReadOnly”] = true;

It worked as it allows the field to be updated through a value change of a generic OpCode field but users cannot enter and/or modify the field.

2 Likes