Notifications
Announcements
No record found.
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?
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
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.
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.)
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.
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?
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
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 592 Most Valuable Professional
André Arnaud de Cal... 478 Super User 2025 Season 2
BillurSamdancioglu 305 Most Valuable Professional