Form -Sub Form relation

aliennavaliennav Member Posts: 449
How are form and subform related to each other.
I have created a form and below it a subform.

When i press ESC key in the header form it works(form gets closed) but if i press ESC key keeping cursor in the subform it doesn' work.Which property relates these two forms.

Comments

  • DenSterDenSter Member Posts: 8,304
    I don't know what you are expecting to happen, but when you press ESC with your cursor in the subform, the whole thing is supposed to close. There is no property that can change that.
  • diptish.naskardiptish.naskar Member Posts: 360
    Denster wrote:
    I don't know what you are expecting to happen, but when you press ESC with your cursor in the subform, the whole thing is supposed to close. There is no property that can change that.

    Hi Daniel,

    I know what he is expecting, aliennav is expecting to close the form even when the cursor is on the subform, and this happens also, but ofcourse just one single press of esc doesn't work, as it slect the fields in which you are, the next esc quits the form.

    I hope this is what Alienav wants.... :-k
    Diptish Naskar
    For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
  • DenSterDenSter Member Posts: 8,304
    That's standard behavior, even without a subform. When you're editing a field value, and you want to revert back to the original value, you can escape back to it. Happens on the main part of form as well, it has nothing to do with subform.
  • aliennavaliennav Member Posts: 449
    It's not that the sub form gets closed when i press it several times.IT DOES NOT CLOSE even after pressing ESC key several times.But when i move to the header part and press ESC the form(Along with the sub form ) gets closed.

    What i have done is::

    Created 2 tables(say A & B)
    Created a form(Header part-card type form)
    Attached table A with this form
    Attached a subform below this form
    Attached table B with this sub form.
  • anand_sri12anand_sri12 Member Posts: 71
    Open the Sub Form You created in Designer mode, Now Delete the three commands which are placed in the bottom(i.e. OK,Cancel and Help) . Now Your Form will be closed on esc.

    Hope this will help
    With thanks

    Anand Kumar
    Navision Technical Consultant
  • aliennavaliennav Member Posts: 449
    Thanks For ur reply.It worked out.
  • aliennavaliennav Member Posts: 449
    whatever "anand_sri12" has suggested is right.
    Problem Solved.
Sign In or Register to comment.