Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

GP 2013 : Menu are not working properly

(0) ShareShare
ReportReport
Posted on by 165

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

  • Jitendra Verma Profile Picture
    1,240 on at
    Re: GP 2013 : Menu are not working properly

    the code has been changes to create area pages and probably creating menus. you would have to refer IG.chm which might help you further.

  • Jonathan Fear Profile Picture
    on at
    Re: GP 2013 : Menu are not working properly

    GP 2013 is not yet released. If you have questions please post them in the partner forums.

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 > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans