Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Startup Script Issue

Posted on by

 

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

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans