Knowledge found and lost while working with Microsoft Dynamics CRM
RSS icon Home icon
  • MSCRM 3.0 Address Record Longitude and Latitude

    Posted on February 16th, 2006 mitch Print Print No comments

    In case you've never looked, the various CRM Entities that contain address information also have Attributes for Longitude and Latitude, though they are not generally shown on the data entry forms.

    This evening, I was doing some research regarding populating those Attributes for Marketing Searches when I noticed a problem:

    They have a minimum value of 0 and a maximum value of 1,000,000,000.00.

    Why is this a problem, you ask? Well, mostly because of the following:

    • Longitude values must be from -180 to 180 degrees
    • Latitude values must be from -90 to 90 degrees

    This means that users will not be able to input data for some parts of the planet.

    To correct the problem, edit each attribute and reset the minimum and maximum values to those listed above.

     

    Customization, Dynamics CRM
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
    833 views
  • Changing Label Attributes on a MSCRM 3.0 Form

    Posted on February 16th, 2006 mitch Print Print 1 comment

    The labels for data entry fields on CRM 3.0 forms can normally only be set to the following values: Normal, Hidden, or Disabled.  Not a whole lot of functionality there should you wish to get inventive ( or at least, more descriptive ) with your forms.

    Using a bit of JavaScript in the Form's OnLoad event, you can alter the labels in a variety of ways.

     

    Changing the Weight of the font ( how dark it is ): 

    crmForm.all.[field name]_c.style.fontWeight = 'bold';

    Possible values:

    normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900

     

    Changing the Font Style: 

    crmForm.all.[field name]_c.style.fontStyle = 'italic';

    Possible Values:

    normal, italic, oblique

     

    Changing the Background Color: 

    crmForm.all.[field name]_c.style.backgroundColor = 'green';

    Possible Values:

    Named or value color

     

    Changing the Font Color: 

    crmForm.all.[field name]_c.style.color = 'green';

    Possible Values:

    Named or value color

     

    Other style elements do exist, but to keep in mind that your changes do not need to vary the CRM user experience too much.

     

    References:

    Javascript style attributes

    Hiding a Form Field Label in MSCRM 3.0

    CRM 3.0 UI Style Guide

     

     

    Customization, Dynamics CRM
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
    1,329 views