Developing for Dynamics GP

by David Musgrave (Perth, WA, Australia) and the Microsoft Dynamics GP Developer Support Team (Fargo, ND, USA)

Setting up Test and Historical Companies

Setting up Test and Historical Companies

  • Comments 6

David MeegoI did not start this thread, but I thought I would give a bit of insight into the subject.

Vaidy Mohan on his blog posted about Test Company Message while logging on to Dynamics GP

I initially thought he was talking about the sample company date dialog which is discussed in my post Hiding the Fabrikam sample company date dialog.

After some discussion with my good friend Robert Cavill (previously a GP consultant, now GP Administrator at a customer site), I realised that the dialog Vaidy was talking about was not the date dialog, but a separate dialog entirely.

That got me curious and so I opened Dexterity and a source code dictionary. I then used the resource explorer to search for "<TEST>" in the messages.  It was found as message ID 1877.  Using the references button, I found the uprconvhistory global procedure which is called by the OK Button change script on the Switch Company form.  This procedure was changed in Feb 2004 (for v8.00 onwards) to look at the Company Name to see if it contains message 1877 "<TEST>" or message 1878 "<HISTORICAL>" and will then display one of two warning dialogs:

  • Warning Dialog 1734: This company is set up for testing only. Do not use this company when processing live data.
     
  • Warning Dialog 1735: This company is used for storing historical information only. Do not use this company when processing current-year data.

Robert tested this on his system and said that this is really useful and should be a Knowledge Base (KB) article. So I searched the Knowledge Base system and found the following article.  It is "hidden" by the fact it refers to Payroll, which is not used outside of North America, but the concept of changing the Company Names works well.

How to create a test or historical company in Payroll or in Canadian Payroll in Microsoft Dynamics GP (KB 885542) Secure Link

I think having a dialog after login in conjunction with the colour coding for Test and Historical companies would be the ideal solution.  Use the link below for the VBA code to change the background colours for each company.

Hybrid - Changing Screen Colours Depending on Company Example

So thanks Vaidy for bringing this to our notice and to Robert for prompting me to investigate further.

[Edit] This feature is now available from Administrator Settings window of the Support Debugging Tool for Microsoft Dynamics GP, have a look at the Support Debugging Tool Build 11 released post for more info.

David

05-Jun-2009: Added link to Support Debugging Tool Build 11.

  • I was quite curious to see this message on one of clients and probed by creating more companies with different name patterns.

    Finally zeroed in to this tag <TEST>. Well, quite a bit of time it took to confirm this.

    Thanks David, for explaining this with more important information.

  • Posting from DynamicAccounting.net

    http://msdynamicsgp.blogspot.com/2008/10/test-and-historical-company-messages.html

  • Just wanted to thank Robert for his R&D to come up with more facts.

    Thanks Robert.

  • I was wondering.... Can you have more than one <test> company?

  • Hi Jim

    You can have as many <TEST> and <HISTORICAL> companies as you want.

    David

  • Over the last few months I have been working hard on the next build of the Support Debugging Tool for

Page 1 of 1 (6 items)
Comments Information

PLEASE READ BEFORE POSTING

Please only post comments relating to the topic of this page.

If you wish to ask a technical question, please use the links in the links section (scroll down, on right hand side) to ask on the Newsgroups or Forums. If you ask on the Newsgroups or Forums, others in the community can respond and the answers are available for everyone in the future.

Leave a Comment
  • Please add 3 and 8 and type the answer here:
  • Post