Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Startup Script Issue

(0) ShareShare
ReportReport
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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans