[Oxygen] Enabling/Disable Menus when Form is already open [message #1781678] |
Mon, 12 February 2018 01:00  |
Eclipse User |
|
|
|
Hello there,
I was wondering if and how it is possible to change the enabled and/or visible state of a menu when a form is already opened?
When opening the form setting these states works wonderfully.
But in my use case the user can only print an invoice to an order, when the order is finished and in "Closed"-State. The user can put the order in closed state, when all requirements are met by pressing a "Close Order" button. And in the "execAction" method I'd like to enable the print invoice menu immediately. But unfortunately invoking "setEnabled(true)/setVisible(true)" doesn't do the trick.
Is there a way to tell a menu to refresh it's enabled/visible state other than in the execFormActivated() method?
My menu structure looks like this:
Print Menu
- Print Invoice
- Print Bil Of Delivery
- Print Credit Voucher
Thanks
Peter
[Updated on: Mon, 12 February 2018 01:01] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04011 seconds