web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

I have the same question (0)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans