What is my menu handle running?

Posted by James Palmer on 10-Apr-2015 04:14

If I've got a handle to a menu item, is there a way to programatically work out what it will run? In other words, can I see the triggers associated with that handle? 

11.2.1

Posted by Mike Fechner on 10-Apr-2015 04:17

Only by static code analysis. Work something out using proparse.

Von meinem Windows Phone gesendet

Von: James Palmer
Gesendet: ‎10.‎04.‎2015 11:14
An: TU.OE.Development@community.progress.com
Betreff: [Technical Users - OE Development] What is my menu handle running?

Thread created by James Palmer

If I've got a handle to a menu item, is there a way to programatically work out what it will run? In other words, can I see the triggers associated with that handle? 

11.2.1

Stop receiving emails on this subject.

Flag this post as spam/abuse.

All Replies

Posted by Mike Fechner on 10-Apr-2015 04:17

Only by static code analysis. Work something out using proparse.

Von meinem Windows Phone gesendet

Von: James Palmer
Gesendet: ‎10.‎04.‎2015 11:14
An: TU.OE.Development@community.progress.com
Betreff: [Technical Users - OE Development] What is my menu handle running?

Thread created by James Palmer

If I've got a handle to a menu item, is there a way to programatically work out what it will run? In other words, can I see the triggers associated with that handle? 

11.2.1

Stop receiving emails on this subject.

Flag this post as spam/abuse.

Posted by James Palmer on 10-Apr-2015 04:19

Thanks Mike. Not really what I wanted to hear, but not surprised. I wonder if there's any mileage in submitting it as an enhancement request?

Posted by Mike Fechner on 10-Apr-2015 04:24

What do you need to get returned? Just that there is an event handler on a menu item? Our do you need the source to figure out it runs a specific .p?

If the latter, I would store the info in the menu items private-data to make it queryable.

Von meinem Windows Phone gesendet

Von: James Palmer
Gesendet: ‎10.‎04.‎2015 11:20
An: TU.OE.Development@community.progress.com
Betreff: RE: [Technical Users - OE Development] What is my menu handle running?

Reply by James Palmer

Thanks Mike. Not really what I wanted to hear, but not surprised. I wonder if there's any mileage in submitting it as an enhancement request?

Stop receiving emails on this subject.

Flag this post as spam/abuse.

Posted by James Palmer on 10-Apr-2015 04:29

Private data might well work, but will require some work. I'm trying to set up Thomas M-H's ABL2DB and our menu structure is hard-coded in the application. The main screen has over 500 menu items. About 50% are added by running an IP making parsing the source tricky. 95% of them run a preprocessor rather than a .p - again making it a nightmare unless parsing a preprocess compile.

Posted by Mike Fechner on 10-Apr-2015 04:34

This is what I usually solve with proparse.

Von meinem Windows Phone gesendet

Von: James Palmer
Gesendet: ‎10.‎04.‎2015 11:30
An: TU.OE.Development@community.progress.com
Betreff: RE: [Technical Users - OE Development] What is my menu handle running?

Reply by James Palmer

Private data might well work, but will require some work. I'm trying to set up Thomas M-H's ABL2DB and our menu structure is hard-coded in the application. The main screen has over 500 menu items. About 50% are added by running an IP making parsing the source tricky. 95% of them run a preprocessor rather than a .p - again making it a nightmare unless parsing a preprocess compile.

Stop receiving emails on this subject.

Flag this post as spam/abuse.

This thread is closed