Visible - editable

najlamthnajlamth Member Posts: 18
I want to ask; is there any way to control the fields on a form (visible, editable) from a codeunite?
Master Navision Developer

Comments

  • Revolution1210Revolution1210 Member Posts: 161
    If you're calling a form from a codeunit, you could call a function on the form prior to opening, which could initialize the state of the required controls on the form.

    e.g., calling code:
    YourForm.SetEditable;
    YourForm.RUN;
    

    Function on form:
    CurrForm.ControlName.EDITABLE(TRUE/FALSE);
    ..
    ..
    
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
Sign In or Register to comment.