Making certain fields: Cheque No. and Cheque Date non editable thru coding

Hi Team,

Please help about how to make certain fields are not editable field when I selected a dropdown list of Cash and E-Payment?

The picture of the page and code below:

In the Global Variable, I have ChequeEditable As Boolean and PayMode As Record Pay Mode ( Table Name)

In added ChequeEditable to the field properties Editable but it is not working. What I want is when I choose Cheque from the dropdown, it should these fields Cheque No and Cheque Date?

Thanks

ONInit()
ChequeEditable := FALSE;


OnOpenPage()
IF PayMode.Code = 'CHEQUE' THEN 
  ChequeEditable := TRUE
ELSE
  ChequeEditable := FALSE;
  
  
OnAfterGetRecord()
IF PayMode.Code = 'CHEQUE' THEN 
  ChequeEditable := TRUE
ELSE
  ChequeEditable := FALSE;

Parents
No Data
Reply Children
Related
Recommended