Microsoft Dynamics CRM 2011 – Service Calendar Appearance Configuration


You can control the appearance and behavior of the Service Calendar in the following ways:

  • Set Time Block Appearance
  • Set Smooth Scroll Limit
  • Set Validation Chunk Size

To edit these settings you must export the ISV.Config by adding as part of a solution, edit the <IsvConfig> element within the customizations.xml, then re-import and publish the solution. See below, Export the ISV.Config, for information on exporting the ISV.Config.

Set Time Block Appearance

You can control the appearance of the rendered blocks in the service calendar. You can control the color used to render the given entity type and status code.

Create a CSS Web resource with a display name of “AppointmentBookConfig”. Within the CSS Web Resource define CSS classes using the following naming convention:

[div.ganttBlock<entityname>Status<statuscode>]

For example, the set the CSS class to apply to a Service Activity entity status of Reserved, the CSS class could be define like the following example:

div.ganttBlockServiceAppointmentStatus4
{
border: 1px solid #848284;
FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#CEC7BD,endColorStr=#848284);
}

Set Smooth Scroll Limit

Specifies the limit when smooth scrolling is used based on the number of blocks rendered in the service calendar.

When the service calendar renders more blocks than indicated in the SmoothScrollLimit element, the behavior changes from scrolling to simply jumping to the first appointment. The service calendar auto scrolls to the first appointment when it is first displayed and when a row is selected.

To set this value you must export the ISV.Config as part of a solution and locate the <SmoothScrollLimit> element at:/ImportExportXml/IsvConfig/configuration/ServiceManagement/AppointmentBook/SmoothScrollLimit.

The default value is 2000. You must edit the value and re-import then publish the solution before the change will take effect.

Set Validation Chunk Size

Specifies the number of appointments or service activities that are passed to the server at a time to check for scheduling errors in the service calendar.

To set this value you must export the ISV.Config as part of a solution and locate the <ValidationChunkSize> element at :/ImportExportXml/IsvConfig/configuration/ServiceManagement/AppointmentBook/ValidationChunkSize. This element is not included in the ISV.Config by default so you must add it as a child of the <AppointmentBook> element.

Export the ISV.Config

When you export a solution the Export Solution dialog box provides the Export System Settings (Advanced) option page. Select ISV Config as an option. The <IsvConfig> element will be included as a child of the <ImportExportXml> node.

My above blog is based on Microsoft’s Official information.

I hope this blog about ‘Microsoft Dynamics CRM 2011 – Service Calendar Appearance Configuration’ was informative. Please feel free to leave your comments.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: