Using Menus for VS Tools to launch ad hoc and custom applications
Before I lose you on that title, let me quickly explain this article. This functionality allows you to add an XML file to Dynamics GP, and that XML file will open an executable file (.exe) on the computer.
So, you say that "we can do that now with short cuts". Yeah, you can. But this is cooler.
This is an example of the XML file:
<
menu
>
<
menuItems
>
<
menuItem
>
<
parentTag1
>Command_Sales</
parentTag1
>
<
parentTag2
>CL_Sales_Transactions</
parentTag2
>
<
menuText
>Notepad</
menuText
>
<
shortCut
>N</
shortCut
>
<
belowTag
>SOP_Entry</
belowTag
>
<
resourceID
>SOP_Entry</
resourceID
>
<
appPath
>notepad.exe</
appPath
>
</
menuItem
>
<
menuItem
>
<
parentTag1
>Command_Sales</
parentTag1
>
<
parentTag2
>CL_Sales_Transactions</
parentTag2
>
<
menuText
>Calculator</
menuText
>
<
shortCut
>C</
shortCut
>
<
belowTag
>SOP_Entry</
belowTag
>
<
resourceID
>SOP_Entry</
resourceID
>
<
appPath
>calc.exe</
appPath
>
</
menuItem
>
</
menuItems
>
</
menu
>
And when you run the code, you get the effect in the screen shot below. Note that 'Calculator' and 'Notepad' have been added.