Share via


Service calendar appearance configuration

 

Applies To: Dynamics CRM 2013

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 file by adding it as part of a solution, edit the <IsvConfig> element in the customizations.xml file, and then re-import and publish the solution. More information:  Export 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”. In the CSS web resource, define CSS classes using the following naming convention:

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

For example, to set the CSS class to apply to a Service Activity entity status of Reserved, the CSS class could be defined as shown in the following example.

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

Set smooth scroll limit

You can specify 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 automatically scrolls to the first appointment when it’s first displayed and when a row is selected.

To set this value, you must export the ISV.Config file 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 the re-import and publish the solution before the change will take effect.

Set validation chunk size

You can specify 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 file as part of a solution and locate the ValidationChunkSize element at /ImportExportXml/IsvConfig/configuration/ServiceManagement/AppointmentBook/ValidationChunkSize. This element isn’t included in the ISV.Config file 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.

See Also

Customize entity views
ISV configuration file schema
Developers guide to customization for Microsoft Dynamics CRM 2013
Create, export, or import an unmanaged solution
When to edit the customizations file
Publish customizations
ISV configuration file schema