Escape subform using ESC?

TRSOEgroupTRSOEgroup Member Posts: 37
edited 2005-04-28 in Navision Attain
the standard forms in navision we can escape a form using esc, even if you are in the subform, when creating forms of our own, pressing esc in the subform doesn't do anything.

what can we do so esc will exit the form? i guess it's a property or sth?

thanx in advance

Comments

  • Timo_LässerTimo_Lässer Member Posts: 481
    I don't know what's happens with your forms but I can imagine that ESC would not do it if you are in "Edit Mode" of a text box.
    If you want to edit the field value, you can press F2 to get into edit mode. If you now press ESC you exit the edit mode instead of closing the form.
    Press ESC one time more and it should do it.

    Another reason could be that there is a MenuItem where ESC is defined as Shortcut Key. Check your forms for that.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • s.delikostovs.delikostov Member Posts: 32
    edited 2005-04-27
    May be you have Cancel button in the form that you using in the subform, or a control that maintains Escape - has PushAction Cancel, LookupCancel,...
    Stamen Delikostov
    Navision Solution Developer
    Intelligent Systems Bulgaria
  • TRSOEgroupTRSOEgroup Member Posts: 37
    if you look at for example sales order you can press exit from the subform and the form closes, but if you develop an own form this don't work, i can't find a menu point or anything in the original form
  • Timo_LässerTimo_Lässer Member Posts: 481
    Please check every Button if there is the Property Cancel set to Yes.
    The Button with this property will be "pressed" if you hit ESC.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • s.delikostovs.delikostov Member Posts: 32
    Do you have buttons in your own form?
    Stamen Delikostov
    Navision Solution Developer
    Intelligent Systems Bulgaria
  • smatijevsmatijev Member Posts: 12
    It happened to me accidentally the other day. You probably made subform with wizard and it automatically places OK and CANCEL buttons to the bottom of the form. Just erase those buttons and it will do the trick. Hopefully :roll:
  • TRSOEgroupTRSOEgroup Member Posts: 37
    smatijev wrote:
    It happened to me accidentally the other day. You probably made subform with wizard and it automatically places OK and CANCEL buttons to the bottom of the form. Just erase those buttons and it will do the trick. Hopefully :roll:

    thank you, that worked \:D/
Sign In or Register to comment.