Using Dexterity for GP 2013 I’m trying to add a new custom entry under Cards / Sales. So I want to click on Cards / Sales and I would like to see at the end of the Sales Cards my custom form where I can place some custom forms.
I’m close but clearly something isn’t right here. I have the code below running and when Dynamics starts it immediately opens the custom form. Any suggestions or examples are welcome. Thanks in advance.
( **************************** Existing code **********************************)
local integer Seq,Status,LoadMode;
local integer l_result;
Seq = 0;
Status = AddCommandToMenu(DYNAMICS,resourceid(form Command_Sales),
resourceid(command CL_Sales_Cards of form Command_Sales),Seq,
CMD_BUILTINCMD_DICTID, {**Notice the constant in use here**}
CMD_BUILTINCMD_FORMID, {**Notice the constant in use here**}
resourceid(command cmdSeparator),true,LoadMode);
if Trigger_RegisterProcedure(script CreateDefaultMenuStructure,TRIGGER_AFTER_ORIGINAL,script SE_Open_Menu) <> SY_NOERR then
warning "Procedure trigger registration failed.";
end if;
if Trigger_RegisterProcedure(script 'OpenCommandForms',TRIGGER_AFTER_ORIGINAL,script SE_Open_Menu) <> SY_NOERR then
warning "OpenCommandForms procedure trigger registration failed.";
end if;
if Trigger_RegisterProcedure(script 'CloseCommandForms',TRIGGER_AFTER_ORIGINAL,script SE_Close_Menu) <> SY_NOERR then
warning "CloseCommandForms procedure trigger registration failed.";
end if;
*This post is locked for comments