i think that tab control will open previously opened tab by default. if u want to set it to first tab then copy the id of control placed on first tab. then paste it to activecontrolonopen of form. think this might be work.
I have had the same problem, but haven't found a solution.
It happens only when the subform does not have any records.
As if the OnNewRecord trigger stops something ... ?
(NAV 3.70)
Navision recommends not using subforms on a tab control.
Keep It Simple and Stupid (KISS), but never oversimplify.
I have fixed it by add a new function in subform which setrange the record. Parent form will call this function at OnOpen. Then i remove the subform link. :P
I have fixed it by add a new function in subform which setrange the record. Parent form will call this function at OnOpen. Then i remove the subform link. :P
It works ^^
But why do such a complex solution when Kriki offers an ideal simple solution that works and is the recommended method?
I have fixed it by add a new function in subform which setrange the record. Parent form will call this function at OnOpen. Then i remove the subform link. :P
It works ^^
But why do such a complex solution when Kriki offers an ideal simple solution that works and is the recommended method?
Why make it easy when you can make it complex?
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
i think you have set Activecontrolonopen property of form. remove it.
then you will find that first tab automatically focus when u run a form.
hope it helps.
Regards,
Rajesh Patel
But, Activecontrolonopen is in default value: <0>
any idea or work around?
Rajesh Patel
Actually in each tab, there is suform.
each subform has 'SubFormLink' linked.
I found that if i erase the subformlink, the tab control works fine.
The tab is pointing to the first one when open form.
What can i do if i need the subformlink and also the tab control works great?
Rajesh Patel
It happens only when the subform does not have any records.
As if the OnNewRecord trigger stops something ... ?
(NAV 3.70)
Navision recommends not using subforms on a tab control.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I have fixed it by add a new function in subform which setrange the record. Parent form will call this function at OnOpen. Then i remove the subform link. :P
It works ^^
But why do such a complex solution when Kriki offers an ideal simple solution that works and is the recommended method?
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!