Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Changing Background Colors For Different Companies GP 10

Posted on by 475

Using GP 10.0 - Does anyone know a way that you can display different colors, even if it is just the toolbars, for each company that you are logged into?  For instance, I log into Company A and it is the Standard Blue color and when I switch Companies to Company B, it has Red, or something like that.  People have been using the test company, then forgetting to log back into the live company before they transact.  We also have another company in another functional currency that has the same accounts, vendors, etc..  I just want to eliminate the rework if anyone made a big mistake.

I'm not looking for instructions on how to do it, just a hint.  I can be resourceful and figure it out, just wanted to know if anyone had seen or done this, if it is even possible without a very complicated customization.

*This post is locked for comments

  • Sylve Davis Profile Picture
    Sylve Davis 5 on at
    Re: Re: Re: Changing Background Colors For Different Companies GP 10

    What I'm getting from all this is - NO you cannot just open a window to change background color. So, MS, why not? The stark white background in GP 10 on a large monitor has got to be the most irritating thing I can think of when working in the program.

    The program codes all kind of superfluous stuff that most of us never use, but in the areas needed by the average user - nada - zilch- zero.  Does anyone from MS ever read any of this stuff? If so, maybe they will get a hint????

  • winthropdc Profile Picture
    winthropdc on at
    Re: Re: Re: Changing Background Colors For Different Companies GP 10

    My code was designed to offer the ability to set colours using VBA (and passthrough Dexterity) as not everyone has access to Dexterity. 

    As you have access to Dexterity, you can write your own customization. The suggested approach sounds like the way to go. 

    If you want to flag a test company have a look at this post as well:

    http://blogs.msdn.com/developingfordynamicsgp/archive/2008/10/02/setting-up-test-and-historical-companies.aspx

    David Musgrave [MSFT]
    Escalation Engineer - Microsoft Dynamics GP
    Microsoft Dynamics Support - Asia Pacific

    Microsoft Dynamics (formerly Microsoft Business Solutions)
    http://www.microsoft.com/Dynamics

    mailto:David.Musgrave@online.microsoft.com
    http://blogs.msdn.com/DevelopingForDynamicsGP

    Any views contained within are my personal views and not necessarily Microsoft policy.
    This posting is provided "AS IS" with no warranties, and confers no rights. 

  • KDay Profile Picture
    KDay 475 on at
    Re: Re: Changing Background Colors For Different Companies GP 10

    Dave, thanks a lot, that's some neat stuff.  I want to do something really simple as I'm not a seasoned developer. This is something I will be playing with once I get some spare time.  It seems to me that your code gives a whole bunch of controls to let someone select different colors from within the company setup window.  I want to make it really basic and just make static colors that I pick and don't change; just as a reminder that the user is in one of the the Test companies or the China company.  I was thinking about just going with what the previous poster said about putting a trigger on the Successful Login script that just sets the color.  Does that make sense?  Maybe once I figure that one out in practice, then maybe I'll use your solution.  Thanks again.

  • winthropdc Profile Picture
    winthropdc on at
    Re: Changing Background Colors For Different Companies GP 10

    Have a look at my blog post with example VBA code that does it all for you.

    http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/21/hybrid-changing-screen-colours-depending-on-company-example.aspx

     

    David Musgrave [MSFT]
    Escalation Engineer - Microsoft Dynamics GP
    Microsoft Dynamics Support - Asia Pacific

    Microsoft Dynamics (formerly Microsoft Business Solutions)
    http://www.microsoft.com/Dynamics

    mailto:David.Musgrave@online.microsoft.com
    http://blogs.msdn.com/DevelopingForDynamicsGP

    Any views contained within are my personal views and not necessarily Microsoft policy.
    This posting is provided "AS IS" with no warranties, and confers no rights. 

  • KDay Profile Picture
    KDay 475 on at
    Re: Re: Changing Background Colors For Different Companies GP 10

    That's great, thanks!

  • Maniraja Profile Picture
    Maniraja 125 on at
    Re: Changing Background Colors For Different Companies GP 10

    Hi KDay,

    This can be done using Dex function Color_SetSystemColor()

    The initial color used for each color category is derived from the operating system’s current color settings.

    If you don’t want to use the default color for a category, you can use sanScript code to specify a different color for the category.

    Color_SetSystemColor(category, color_value)

    Example: Color_SetSystemColor(SYSTEM_TOOLBAR, COLOR_MEDIUM_GRAY)  {This will set your control area color into Medium Gray}.

    You can develop a window to define your colors and based on this you can change the colors by writting a trigger on Change Company or after successful login script.

    Please let me know if you need any additional information!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans