form should not be close when i press Escape Button???

kishi_gkishi_g Member Posts: 162
Iam using one form for automatic alerts. suppose the user press escape button then the form will be closed. is there any way to doesnt close the form when they press escape???
The navision appication closed then only the form will be closed .


how can i do tht???



Regards,
Kishore.

Comments

  • nunomaianunomaia Member Posts: 1,153
    Check form trigger "OnQueryCloseForm".

    You can control when user can close form.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • todrotodro Member Posts: 117
    kishi_g wrote:
    Iam using one form for automatic alerts. suppose the user press escape button then the form will be closed. is there any way to doesnt close the form when they press escape???
    The navision appication closed then only the form will be closed .


    how can i do tht???



    Regards,
    Kishore.
    use the trigger OnQueryCloseForm() which exits with true only after you set the variable ExitVarG somewhere in the form to true.

    Form - OnQueryCloseForm() : Boolean
    exit(ExitVarG);
    


    But beware: do not try with a simple exit(false) and do not forget to allow at least one exit condition: Guess why ? :D
    Torsten
    MCP+I, MCSE NT, Navision MCT (2004,2005)
  • kishi_gkishi_g Member Posts: 162
    Thanks for ur replies.

    it works fine...
Sign In or Register to comment.