How do I define which Tab is displayed when a form is opened

lokidoglokidog Member Posts: 3
Hello,

I am having trouble defining what tab I want a form to display when the form is opened. Navision 3.6.

I have created a form that has 2 tabs (form1). When I click a button on a second form (form2) which opens form1, form1 opens but displays the second tab. Not the first tab as required.

How do I define which Tab to open?

Cheers

Comments

  • WaldoWaldo Member Posts: 3,412
    By activating a control on that tab.

    CurrForm.Controlname.ACTIVATE in the OnOpenForm trigger should do the trick.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • kinekine Member Posts: 12,562
    If you are using subforms on the tabs, do not forget to set DelayedInsert on the subforms, else the focus will be each time on the subform...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • lokidoglokidog Member Posts: 3
    Thank you for taking the time to read my post and reply.

    I tried both suggestions but the one that worked was changing the DelayedInsert property. Now my development opens to the correct tab.

    Once again Thanks
    :D
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Would you be so kind to put [SOLVED] in your topic title? This way, other people with the same question can see the answer is given in this thread.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.