Options

Dialog 'OK' button

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

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,090
    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!


  • Options
    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.
  • Options
    krikikriki Member, Moderator Posts: 9,090
    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!


  • Options
    DenSterDenSter Member Posts: 8,304
    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.
  • Options
    ROBOROBO Member Posts: 39
    ThanX

    I will stick by the Dialog it will do.

    again ThanX
Sign In or Register to comment.