Skip to Content
avatar image
Former Member

UI: Get active form?

Hi all,

after the user has pressed a menu item, is there any way to get the last active form?

i.e.:

User leaves invoice form with uid "SAP123" and presses a menu item.

GetLastActiveFormUID would return "SAP123"

Background is to be able to read information out of this form on a menu action.

Or do I have to memorize the last active form on the forms LostFocus- event?

Thanks Lutz Morrien

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jul 28, 2004 at 07:07 AM

    Forget it, I mixed Menu and Item events 😔

    Regards,

    Ibai Peña

    Message was edited by: Ibai Peña

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 28, 2004 at 08:29 AM

    The form object has a "selected" property. The form which has the focus when you press a menu item will have its "selected" property set to true, all others will have it set to false.

    By looping through the forms collection checking the "selected" property you can identify which form the menu click related to.

    John.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks again,

      I just crosschecked and ... indeed it was there all along.

      Nothing worth more than good documentation...

      It seems strange to me that SAP created (or bought) a software with lots of functionalities and does not bother telling people that they are there.

      I think there is great need for some deeper documentation.

      Lutz Morrien