Hello, I would like to know how I can add a shortcut to a button, I had seen a way to do it, but in my case I want to assign it to f2, f3, etc.
Is there a way?
Announcements
Hello, I would like to know how I can add a shortcut to a button, I had seen a way to do it, but in my case I want to assign it to f2, f3, etc.
Is there a way?
local integer item_tag; item_tag = Command_GetTag(command ShortcutDescription of form LoAdditionalTransProductSearchByFKeys); result = Command_SetAccelerator(item_tag, COMMAND_SHORTCUT_CTRL, COMMAND_SHORTCUT_KEY_F2); {--------------------------Syntax----------------------------- Command_SetAccelerator(item_tag, modifier, key) item_tag: it's the command that you want execute (you have to create a command) modifier: specifies the combination of modifier keys for the shortcut, }
Hello, thank you all for your help, I tell you I managed to do it,
In the same way, attach the code I achieved it with in case someone else needs it.
It can also be found in the documentation
Hi MarcosAP25
I think you are talking about accelerator keys like of ALT+L, like usually we have on GP lookups, if we are focusing a field having a lookup icon with it and if we type Ctrl+L it opens lookup window. For GP windows there are accelerator keys but for buttons there are no out of the box option to set access key.
In dexterity we can do this modification although by using &.
The ampersand signifies that the character immediately following is to be used as an access key. Access key characters will appear underlined at runtime.
May I know for which button you are looking for this option?
I wonder if GP Power Tools could be used here.You would need to capture the function key being pressed and then have to open the desired screen.
What about creating a macro of clicking the button, adding the macro to the navigation pane, and assigned the function key to that navigation pane shortcut? (Without knowing what button/action you want to use for a shortcut, it is hard to give a more definitive answer.)
If I had seen that it is possible to add keys as shortcuts, I know how to do it, I wanted to know if it was possible to achieve the same effect with the function keys.
I know there are hot keys and shortcuts that can be used in Dynamics GP using specific combos on the keyboard, but I'm not sure about assigning a shortcut to a specific keyboard key, like F2, F3.
I did fine some information where you can add the item you want for the shortcut to the navigation pane, then once the shortcut is in the navigation pane, right-click the shortcut and go into properties, click the drop-down menu and select the function key you want to use.
There may be other processes but this is what I found off hand.
Thanks
Martin Dráb
601
Most Valuable Professional
Abhilash Warrier
416
Adis
384
Super User 2025 Season 1