I've a Form card with main form and subform tabular in the same. When i am in the main form with the shortcutkey i open another form, but when i close it last form, i want that the focus goes to the subform tabular.
first the Subform need a name in the properties of the Subform (lets say for the example SalesLines).
Then the form must be called via code and not by Action "RunObject".
So an example:
//YourButtonOrMenuItem
.....
YourForm.runmodal();
CurrForm.SalesLines.activate; //Here we activate the Subform. The Subform has the name SalesLines
Comments
first the Subform need a name in the properties of the Subform (lets say for the example SalesLines).
Then the form must be called via code and not by Action "RunObject".
So an example:
Regards