Edit form on next record and reopen on command button

ChowdaryChowdary Member Posts: 148
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

Answers

  • karthisahakarthisaha Member Posts: 22
    Try This...
    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
  • ChowdaryChowdary Member Posts: 148
    Thank you karthisaha, it worked. Thanks a lot
    Pleasure in the job puts perfection in the work
Sign In or Register to comment.