Default the Activities 'Filter on' to 'All' for Account and Contact
//default the Activities 'Filter on' to 'All' for Account and Contact
function filterAllActivities() {
document.getElementById(" navActivities").onclick = function () {
loadArea("areaActivities");
document.getElementById("
loadArea("areaActivities");
document.getElementById(" areaActivitiesFrame").onload = function () {
var entityName = Xrm.Page.data.entity. getEntityName();
var entity = entityName.charAt(0). toUpperCase() + entityName.substr(1);
var doc = this.contentWindow.document;
var filterOn = doc.getElementById("crmGrid_" + entity + "_ActivityPointers_ datefilter");
var entityName = Xrm.Page.data.entity.
var entity = entityName.charAt(0).
var doc = this.contentWindow.document;
var filterOn = doc.getElementById("crmGrid_"
filterOn.value = "All";
filterOn.FireOnChange();
};
};
filterOn.FireOnChange();
};
};
No comments:
Post a Comment