Hello:
I have a grid on a custom form with a FieldA I'd like to disable / not allow change if another FieldB on the same record is of a specific value. I tried code in the datasource's active method but it only works on the first record. I'd like to have all records loaded to on that grid to enable/disable FieldA if FieldB has a certain value.
if (TBL.FieldB == NoYes::Yes)
TBL_ds.object(fieldNum(TBL, FieldA)).allowEdit(false);
else
TBL_ds.object(fieldNum(TBL, FieldA)).allowEdit(true);
Any help would be appreciated.
Thank you.
*This post is locked for comments
I have the same question (0)