Sunday, July 17, 2011

how to custom a due date (or any date) on the records of the home grid in MS CRM 4.0 also in 2011

Suppose you have a field on an entity. and you want to populate the records by highlighting that field value on basis of some logic.
In my case am considering the Due Date of an entity, if the due date is earlier than today , then the value in the Grid will be red.

1st Step
include the JS file in the HomePage.aspx in the _root/ of the installed MS CRM.
in that include the code
function window.onload()
{
updateDueDate();
}2nd step
wrtite the JS code