locked
Identify different environments RRS feed

  • Question

  • Hello,

    I need a way to identify different environments. For example: Production vs Quality Vs Development using both text and color in the dynamics screen toolbar. 

    Something like the following:

    Anyone has any ideas on how I can do this ?

    Tuesday, May 15, 2012 8:17 PM

Answers

  • Hi,

    You can change colors in the forms by havinf css web resources.

    What you are looking for is unsupported. You can change the colors by modifying the CRM core css files.

    Please go to your Dynamics CRM (I am assuming you have CRM 2011) installation folder. There go to the styles folder.

    In my case the folder location is: "C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles". There you will see the file "global.css". Change the CSS there (give the color there). That will do the trick, but it should be unsupported. In future releases or Roll Up updates, the "global.css" file can get replaced and updated. This will replace your changes and again you will have to do your color changes.So it is definitely unsupported, but in case you are going to make the color change, take a backup of this file and document your changes.

    I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Tuesday, May 15, 2012 10:49 PM
  • Hi,

    1) For forms: CRM 2011–Changing the Form Header and Footer Colors (this is Unsupported customisation, please be careful)

    http://blog.customereffective.com/blog/2011/08/crm-2011changing-the-form-header-and-footer-colors.html

    2) For logo change: Just replace <MSCRM application CRMWeb>\_imgs\CRMMastheadLogo.png image.

    (this is Unsupported customisation, please be careful)

    3) Provide color to forms:

    (this is Unsupported customisation, please be careful)

    http://gonzaloruizcrm.blogspot.com.au/2011/08/dynamically-colour-up-your-crm-forms-in.html

    4) How to change CRM form field’s label color using Jscript:

    (this is Unsupported customisation, please be careful)

    http://rajeevpentyala.wordpress.com/tag/change-crm-form-fields-label-color-using-jscript/

    I hope this helps. If my responses answered your question, please mark all these responses as an answer and also vote them as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Thursday, May 17, 2012 10:56 PM

All replies

  • Hi,

    You can change colors in the forms by havinf css web resources.

    What you are looking for is unsupported. You can change the colors by modifying the CRM core css files.

    Please go to your Dynamics CRM (I am assuming you have CRM 2011) installation folder. There go to the styles folder.

    In my case the folder location is: "C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles". There you will see the file "global.css". Change the CSS there (give the color there). That will do the trick, but it should be unsupported. In future releases or Roll Up updates, the "global.css" file can get replaced and updated. This will replace your changes and again you will have to do your color changes.So it is definitely unsupported, but in case you are going to make the color change, take a backup of this file and document your changes.

    I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Tuesday, May 15, 2012 10:49 PM
  • I think there is no customization that would support that type of change, as you are looking to overrid a specific stylesheet entry off main.aspx.  The style you are looking to override would be Div.ms-crm-TopBarContainerGlobal which is in them.css.aspx. 

    You could also look into creating a plug in that changes the above style if you load the page ...

    Hope that helps some.

    --jerry

    Tuesday, May 15, 2012 10:50 PM
  • Although the above posts have useful information, I don't think they'll form a complete answer:

    • The problem with changing css or similar files (other than the fact it's unsupported), is that this would apply to all organisations on the same deployment.
    • Plugins can modify data, but not user interface components

    Another (again unsupported) approach could be to create and register an HttpModule that could intercept the web requests, and modify the results of either the .css or .css.aspx responses, based on the organisation the request is for


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk


    Wednesday, May 16, 2012 7:16 AM
    Moderator
  • Is there a way to change the color forms in a solution file ?
    Thursday, May 17, 2012 1:31 PM
  • Hi,

    Can you please explain what you want to achieve. Do you want to change colors of the forms?

    Thanks.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Thursday, May 17, 2012 1:41 PM
  • Yes, or have a label that some how identifes each environmnet. Can be done by changing the color of the form as with the previous pictures provided, or labeling like:

    I would like to do this using possibly a solution

    Thursday, May 17, 2012 6:53 PM
  • Hi,

    1) For forms: CRM 2011–Changing the Form Header and Footer Colors (this is Unsupported customisation, please be careful)

    http://blog.customereffective.com/blog/2011/08/crm-2011changing-the-form-header-and-footer-colors.html

    2) For logo change: Just replace <MSCRM application CRMWeb>\_imgs\CRMMastheadLogo.png image.

    (this is Unsupported customisation, please be careful)

    3) Provide color to forms:

    (this is Unsupported customisation, please be careful)

    http://gonzaloruizcrm.blogspot.com.au/2011/08/dynamically-colour-up-your-crm-forms-in.html

    4) How to change CRM form field’s label color using Jscript:

    (this is Unsupported customisation, please be careful)

    http://rajeevpentyala.wordpress.com/tag/change-crm-form-fields-label-color-using-jscript/

    I hope this helps. If my responses answered your question, please mark all these responses as an answer and also vote them as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Thursday, May 17, 2012 10:56 PM
  • Yes :D Thank you VERY much Ashish, you're awesome !
    Friday, May 18, 2012 12:58 PM
  • One last question Ashish,

    On 4 I would like to have a field on the header identifying the environment. The color does not matter. Is this unsupported too ?

    Friday, May 18, 2012 1:02 PM
  • Hi,

    Thanks for the kind words. Important thing is your issue is solved.

    In CRM 2011 header you can have fields, that's fine.

    I hope this helps. If my responses answered your question, please mark all these responses as an answer and also vote them as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Friday, May 18, 2012 1:08 PM
  • Hi,
                            
    If the last response answered your question and you are satisfied, please mark the response as an answer and also vote as helpful. This will help others to search on similar problems.
                            
    Thanks in advance.

    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Friday, May 18, 2012 9:50 PM
  • I was actually able to change this , modifying main.css.apx. I was able to figure this out using IE's developer tool. Nonetheless thank you Ashish for guiding me to the right place.

    Tuesday, May 22, 2012 7:01 PM
  • No problems mate.

    Can you mark all the answers as completed and also vote them as helpful, which helped you and this will help others also identify the helpful posts.


    Ashish Mahajan, Microsoft Dynamics CRM Solutions Architect, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Tuesday, May 22, 2012 10:44 PM
  • Hey Ashish,

    I'm having another problem: 

    If I change the background-color on the DIV.ms-crm-TopBarContainerGlobal div tag on main.css.aspx using the developer tool. The color seems to change. However, if I try to do this on C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles. I do not see the change. 

    To debug this I have tried the following:

    1-Opened IIS Manager and made sure the web site pointed to C:\Program Files\Microsoft Dynamics CRM\CRMWeb

    2- Modified the main.css.aspx under C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles and refreshed the directory under IIS.

    3- Made an iisreset /stop, then an iisreset /start

    No color is reflected. If I revisit C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles , main.css.aspx has not been changed or overwritten. 

    What am I doing wrong ?

    Wednesday, May 23, 2012 7:46 PM
  • I also changed the theme.css.aspx by applying the following:

    DIV.ms-crm-AdvFind-SelectedFilterField,
    {
    <% = this.GetStyleCss(CrmTheme.Current.Global.AdvancedFindBorder) %>

    background-color: Red;

    }

    Wednesday, May 23, 2012 8:13 PM
  • I've seen this done by modifying the masthead.jpg image. But bear in mind that the same images are reused by every organization in your deployment, so to have different coloured CRM application headers, you'll need separate deployments of CRM.

    Neil Benson, CRM Addict and MVP at Slalom Consulting. Find me on Twitter. Join over 20,000 other CRM professionals on the Microsoft Dynamics CRM group on LinkedIn.

    Monday, June 4, 2012 8:29 PM
    Moderator