strange behaviour for tabs on program detail form.

We have a tabpanel with 3 tabs on our program detail form.
When we put that form in ‘Add’ mode the first form on that panel receives the focus, instead of the first element on the detail form.
This is seems to be related to the functions updateUI and onShowForm of svy_nav_base
In updateUI globals.nav gets a new variable myformfocusFirstField and this is set to true.
In onShowForm it checks for this variable and if it is set than it tells the controller to focus the first field.
When running this is first triggered by the detail form and next by the form on the tabpanel.
Can someone explain why this variable is needed?

Hi Jos,

The variable was created because some developers did not want the focus at all. By setting the variable to false the framework would not set the focus.