Micah
4Penny.net
Points: 7359

7/18/2013 4:13:21 PM

Using Menus for VS Tools to launch ad hoc and custom applications

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.

 

 

4Penny.net
Version: GP 2010,GP 2013
Section: Visual Studio Tools for Dynamics GP,.NET Development
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3