Dialog 'OK' button

ROBOROBO Member Posts: 39
Is there an option to make a OK button visible on a dialog form

Comments

  • krikikriki Member, Moderator Posts: 9,118
    It is not possible.

    Can you explain what you want to do? With more info, we can better give you another solution.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ROBOROBO Member Posts: 39
    I want to get user input (post code) to use that as a filter. If they select "OK" then it's being used or if they select "Cancel" the job stops.
  • krikikriki Member, Moderator Posts: 9,118
    Best create a form with the field and Ok,cancel-buttons on it.
    To call it :
    make a variable of the form:
    IF frmMyForm.RUNMODAL = ACTION::Ok THEN BEGIN
      MESSAGE('Postcode:<%1>',frmMyForm.GetPostCode());
    END;
    

    And a function in the form:
    GetPostCode() : Code20
      EXIT(codPostCode); // codPostCode is the variable for the postcode on the form
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • DenSterDenSter Member Posts: 8,307
    No such thing in Navision, you'll have to create your own form for that purpose. You could use the INPUT method of a dialog box, but that only has a cancel button I think.
  • ROBOROBO Member Posts: 39
    ThanX

    I will stick by the Dialog it will do.

    again ThanX
Sign In or Register to comment.