I am creating a new menu item on a form. For that menu item I have added some logic on the OnPush action to call an external program using the SHELL command and feeding parameters to this external application. I have gotten that to work.
Now I want to add a shortcut key to that menu item to execute it via a funtion key shortcut. However, it seems like when I create a function key shortcut (on the MenuButton - Menu Designer form), it does not seem to be executing the OnPush logic. The ShortCutKey only seems to be able to use pre-defined actions (RunObject, RunSystem, Lookup Table, etc.) on NAV objects (Forms, Codeunits, etc.).
My question, is there a way to have the ShortCutKey launch the OnPush logic of the menu item on a form? Otherwise, it looks like I will need create a codeunit that does the same logic as my OnPush logic for the menu item. And I will have to create the ShortCutKey to execute that CodeUnit.
Thanks for the assistance,
Harold B.
0
Comments
How you "format" your shortcutkey?
- Made my change on the Payables Invoice form. Added a couple of new menu items to the Invoice button in the Forms Designer.
- On the new menu items, I set up a ShortCutKey of "Ctrl+b". But I did not set a value for Action, or RunObject.
Is there a certain value I need to set up for the Action and/or RunObject that will execute the OnPush logic for the menu item? If you did get this to work, can you give me some more specifics on how your setup is different from mine?
Thanks,
-H
Did you try to use Ctrl+B instead of Ctrl+b yet?
- CTRL
- SHIFT
- ALT
etc.
Thanks again for the assistance,
Sincerely,
-H
RIS Plus, LLC
MVP - Business Apps