Hi Everybody,
I need form to be non-editable when it's open or onafterrecord. If user wants to edit form there should be a command button for user to edit the form.
I did CurrForm.EDITABLE(TRUE); on command button and CurrForm.EDITABLE(FALSE); on OnAfterGetRecord. It's all good but one issue
After OnPush command button OnAfterGetRecord id excecuting and form is staying non editable even after pushing command button
Please let me know if anybody knows solution
Thank You
Chowdary
Pleasure in the job puts perfection in the work
0
Answers
Use one Boolean variable.
Button - OnPush()
Edit_Flag := TRUE;
CurrForm.EDITABLE(TRUE);
Form - OnAfterGetRecord
IF not Edit_Flag Then
CurrForm.EDITABLE(FALSE);
Form - OnNextRecord
Clear(Edit_Flag);
Exit(Next(Steps));
-Karthik