How to change the tab order of the controls in Axapta ?
There is the way, using code in the init
(or calling a method which handles the tabOrder from init).
void init()
{
Array tabOrder = new Array(Types::Integer);
;
super();
tabOrder.value(1, Control1.id());
tabOrder.value(2, Control2.id());
tabOrder.value(3, Control3.id());...etc
element.tabOrder(tabOrder);
}
(or calling a method which handles the tabOrder from init).
void init()
{
Array tabOrder = new Array(Types::Integer);
;
super();
tabOrder.value(1, Control1.id());
tabOrder.value(2, Control2.id());
tabOrder.value(3, Control3.id());...etc
element.tabOrder(tabOrder);
}
hi gupta, i have a requirement to modify the tab order when we press the TAB key. i am a beginner in Dynamics AX. i have a small doubt in the above code. what should i replace the control1.id(), control2.id(). for example, i have 5 fields in a group under a tab page. should i replace the control1.id() with "tablename.fieldname".
ReplyDeletei have written like
void init()
{
Array tabOrder = new Array(Types::Integer);
;
super();
tabOrder.value(1, tablename.field1);
tabOrder.value(2, tablename.field2);
tabOrder.value(3, tablename.field3);
element.tabOrder(tabOrder);
}
and i have changed the auto declaration property for all form design controls to "Yes". but when i open the form there is no response when we press TAB key. we need to select any field with mouse click only as TAB key has no response. please provide me the solution for this.