web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to add a shortcut to a button in Dynamics GP 2018

(1) ShareShare
ReportReport
Posted on by 75

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?

Categories:
I have the same question (0)
  • Suggested answer
    Derek Albaugh Profile Picture
    on at

    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

  • MarcosAP25 Profile Picture
    75 on at

    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.

  • Suggested answer
    Lisa at AonC.com Profile Picture
    937 Super User 2025 Season 2 on at

    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.)

  • Richard Wheeler Profile Picture
    75,850 Moderator on at

    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.

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    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?

  • MarcosAP25 Profile Picture
    75 on at

    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

    pastedimage1613137950768v1.png

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans