Skip to main content

Notifications

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:
  • MarcosAP25 Profile Picture
    75 on at
    RE: How to add a shortcut to a button in Dynamics GP 2018

    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

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at
    RE: How to add a shortcut to a button in Dynamics GP 2018

    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?

  • Richard Wheeler Profile Picture
    75,848 Moderator on at
    RE: How to add a shortcut to a button in Dynamics GP 2018

    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
    Lisa at AonC.com Profile Picture
    750 on at
    RE: How to add a shortcut to a button in Dynamics GP 2018

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

  • MarcosAP25 Profile Picture
    75 on at
    RE: How to add a shortcut to a button in Dynamics GP 2018

    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
    Derek Albaugh Profile Picture
    on at
    RE: How to add a shortcut to a button in Dynamics GP 2018

    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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans