Hi All,
We are having integration with Dynamics GP , we are trying to add menus under Microsoft Dynamics GP >> Tools >> Utilities & Inquiry >> Our Menu
For Inquiry we are using structure as below :
if nLoadMode = MENULOAD_TOTABLE then
{ make sure commands exist already in the default set }
fAddCommand = not AlreadyExistsOnMenu("",
DYNAMICS,
resourceid(form Command_System),
resourceid(command CL_Inquiry of form Command_System),
l_PrdID,
resourceid(form Command_AVA),
resourceid(command cmdSeperator of form Command_AVA)) of form syMenuObj;
else
fAddCommand = true;
end if;
if fAddCommand then
nSeq = 0; { will cause it to be added to the end of the menu/command list}
nStatus = AddCommandToMenu(DYNAMICS,
resourceid(form Command_System),
resourceid(command CL_Inquiry of form Command_System),
nSeq,
l_PrdID,
resourceid(form Command_AVA),
resourceid(command cmdSeperator of form Command_AVA),
true, nLoadMode);
{
CMD_BUILTINCMD_DICTID,
CMD_BUILTINCMD_FORMID,
resourceid(command cmdSeparator),
true,
nLoadMode);}
assert nStatus = OKAY;
end if;
{Adds the CommandList AvaTax }
if nLoadMode = MENULOAD_TOTABLE then
{ make sure commands exist already in the default set }
fAddCommand = not AlreadyExistsOnMenu("",
DYNAMICS,
resourceid(form Command_System),
resourceid(command CL_Inquiry of form Command_System),
l_PrdID,
resourceid(form Command_AVA),
resourceid(command CL_AvaTax_Inquiry of form Command_AVA)) of form syMenuObj;
else
fAddCommand = true;
end if;
if fAddCommand then
nSeq = 0;
nStatus = AddCommandToMenu(DYNAMICS,
resourceid(form Command_System),
resourceid(command CL_Inquiry of form Command_System),
nSeq,
l_PrdID,
resourceid(form Command_AVA),
resourceid(command CL_AvaTax_Inquiry of form Command_AVA),
true,
nLoadMode);
end if;
if fAddCommand then
nSeq = 0;
nStatus = AddCommandToMenu(DYNAMICS,
resourceid(form Command_AVA),
resourceid(command CL_AvaTax_Inquiry of form Command_AVA),
nSeq,
l_PrdID,
resourceid(form Command_AVA),
resourceid(command cmdValidatedAddresses of form Command_AVA),
true,
nLoadMode);
end if;
This code is working fine with GP2010 but when it comes to GP12 , this is not working , please suggest!!
*This post is locked for comments