Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Command_SetAccelerator - Dexterity

Posted on by 5

Below is my dexterity code that resides in a startup procedure.  I am attempting to set a function key (F1) to run a script.  Currently the only thing the script does is produce a warning message.  The tag is consistenly being returned as a 0.  How can I set the script to run as a function key?


lItemTag = Command_GetTag(command AAExpenditureSetup of form AAExpenditureCommands);
lResultCommand = Command_SetAccelerator(lItemTag, COMMAND_SHORTCUT_KEY_F1, ascii("F1"));
if lResultCommand = false then
 warning "F1 Command is not set. " + str(lItemTag);
end if;

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans