How to show different forms depending numeration

DarkHorseDarkHorse Member Posts: 389
edited 2007-06-22 in Navision Attain
It would want to know if it is possible makes a thing on Sales Order form. In this form, in the field number, I've created a different numeration. I've creacted also a Line Order form with some different fields. I want that when I choose a numeration it shows me the form that I want; Is it posible and how I can do it?.
Thanks in advance.

Comments

  • matttraxmatttrax Member Posts: 2,309
    Sounds like it the onValidate trigger of the field you're selecting something on you want code to set your subform VISIBLE or INVISIBLE accordingly.

    So
    IF Condition1 THEN BEGIN
      CurrForm.Subform1.VISIBLE := TRUE;
      CurrForm.Subform2.VISIBLE := FALSE;
    END ELSE IF Condition2 THEN BEGIN
      CurrForm.Subform1.VISIBLE := FALSE;
      CurrForm.Subform2.VISIBLE := TRUE;
    END;
    
  • DarkHorseDarkHorse Member Posts: 389
    Fantastic; it's enough for me, thank you very much for your help.
Sign In or Register to comment.