HR and Payroll Navigation Pane issue

Patrick RothA while back, there were several posts in the public Dynamics GP newsgroup about that HR & Payroll Navigation button being 'messed up'.  Finding that odd, I looked at mine on 10.0 SP1/SP2 - I don't recall which - and noticed the same thing.  Unfortunately I don't recall exactly what what the issue, only that the area page wouldn't come up propertly like it did on the Sales, Purchase, etc buttons.

Checking with my colleagues here, I found that about half were OK and half impaired in some manner.

I remember doing a bit of investigation in source code and not being able to come up with a why this should happen.  However I did a bit of Dexterity work and fixed my own issue.

I ran across a copy of that post the other day and noted in the newsgroup that it was again messed up on my 10.0 SP3 system (the same instance from before - just upgraded to 10.0 SP3) and noticed that I appear to have all of the items for the HR & Payroll panel, just out of the expected order.  And that is why the area page doesn't appear right away since it isn't at the top of the list.

Thinking about it a bit and having to ferret out the solution again, I tried to think of a way to be able to deploy this solution to others.  The main question I faced was - how do you all execute some Dexterity sanScript easily and without me posting a chunk file with just a button on it?

The solution came to me rather quickly - the Support Debugging Tool.  While it can do all kinds of logging, the part we care about in this situation is the Runtime Execute piece. 

  1. The first step is to download the Support Debugging Tool and get the application installed.
     

  2. Once installed, log into GP as 'sa' or 'DYNSA' user or another user that has dbo access as that is required to get to the window we need.
     

  3. Open the Support Debugging Tool main window by choosing Microsoft Dynamics GP | Tools | Support Debugging Tool.
     

  4. From the Support Debugging Tool main window menu, choose Debugger | Dex.ini Settings
     

  5. From the Support Debugging Tools Options section, mark the Enable Debugger Advanced Mode Features checkbox.  Press OK to close the window.
     

  6. From the Support Debugging Tool main window menu, choose Debugger | Runtime Execute
     

  7. Enter in a Script ID - anything will do.  I called mine HRNAVPANE.
     

  8. Enter in a Script Name - again anything will do.  I entered HR & Payroll Nav Pane.
     

  9. For the context drop list, choose Microsoft Dynamic GP as the product.
     

  10. In the code section; enter the script below.
     
    Runtime Execute Script

     call CreateMenu_Payroll_NavButton, 
         DYNAMICS, 
          Resource_GetID(DYNAMICS, FORMTYPE, technicalname(form Command_NavBar)),
         resourceid(command HRPayrollButton of form Command_NavBar),
         MENULOAD_TOTABLE;
    

     

  11. Press the "Execute" button at the bottom right.  This will execute the code successfully unless you didn't enter the code above correctly somehow.  This procedure will redefault the navigation pane information for the HR & Payroll navigation button.  It will not delete any custom lists that you may have personalized.
     

  12. At this point you are finished and you can save this code by pressing the Save button in the window or just clear it.  You can then also close the Support Debugging Tool window and exit GP.  You might want to save it in case this happens again on the next upgrade.
     

  13. When you log in again, you'll see that your HR & Navigation pane looks correct.  Or at least I presume it will since mine does now!

Patrick

// Copyright © Microsoft Corporation. All Rights Reserved.
// This code released under the terms of the
// Microsoft Public License (MS-PL, https://opensource.org/licenses/ms-pl.html.)