Monday, July 15, 2019

NAV - Disable Fields or Subform based on field

On Page

OnAfterGetCurrRecord()
//Lock all fields when posted
IF Posted THEN BEGIN
  EditAI := FALSE;
END ELSE BEGIN
  EditAI := TRUE;
END;

On each field or part you want to disable, in line properties
Editable = EditAI

No comments:

Post a Comment