Change focus

gonzy1981gonzy1981 Member Posts: 156
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.

Do you know to do it?
Thanks

Comments

  • garakgarak Member Posts: 3,263
    Should this only happen when you open a specific form (your shortcutkey form) from your base form or on all forms which can run from your mainform?
    Do you make it right, it works too!
  • gonzy1981gonzy1981 Member Posts: 156
    Only in a especific form
  • garakgarak Member Posts: 3,263
    i give you an example based in Sales Order Form.

    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
    

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.