Tab sequence in the card form.

sridhar
sridhar Member Posts: 171
Hi all I am new to Navision. I have a doubt in the tab sequence in the card form.

I want to enter information about a new customer. When I used the tab sequence, its skipping the "state" field and directly going to the "country code" field.

This happens to all the card form which is have the address information. Is there is way to change the tab sequence or is that the Navision standards?

Kindly reply...

Comments

  • garak
    garak Member Posts: 3,263
    Take a look into the properties of the fields. Here is a property Next Control no (or so)

    Regards
    Do you make it right, it works too!
  • sridhar
    sridhar Member Posts: 171
    Thank you very much Garak.

    But, I wonder why the customer card or other card does not allow to go the "state" field. Do you think will there be any reason for that...?
  • Savatage
    Savatage Member Posts: 7,142
    The form has probably been modified.
    The fields moved around..My guess would be that it will hit that field eventually if you keep tabbing.

    But simply use the Next Control to pop into the fields in the order you want.

    You want to enter the FIELD ID# thatyou want to goto next in the NextControl of the field you're coming from.

    This also works (for example) on the sales line subfom.

    We just need out users to enter
    1.the item #
    2.the qty
    3.the discount (if any)

    then pop back to the item# and begin the sequence again.
    therefore saving time by going into fields they don't need to.

    as a bonus all out item numbers are 5 characters long. so we also set the MaxLength property to 5 so once the item # has been entered it automatically pops to the next field without any extra user intervention.
  • kine
    kine Member Posts: 12,562
    Without using NextControl the tab functionality works in this way:

    Try to jump to next control under actual control (in same Column).
    If there is no such a control, jump to next control column and jump to first control in this column.

    It means, if you are not using grid or you have for example some field right after another, the control can be skipped. If you will use Navision design standards (the minimal space between controls, etc.) you will not need the NExtControl property (or only some special cases).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • DenSter
    DenSter Member Posts: 8,307
    So to put it in simple terms... Navision 'reads' the tab order like it's chinese, from top to bottom and from left to right. So it will read xpos value=1 and sees if there are any controls with that value. Then it moves to xpos=2, then xpos=3, etc. If the xpos property of what you think is the next control it is one pixel higher, Navision considers it to be in the next column and will skip to the next one with the same xpos.

    So on a standard Customer Card, you are in the State field and press tab, it will jump to the ZIP field, because the nextcontrol property has been explicitly set to the ID of the ZIP control, and the ZIP control's nextcontrol is set to the country code. When you move those around, you will get funky results in the tab order. Also, when you want to manually create a Card Type form with a tab order like that, you will have to set it manually.