25. Mai 2010 10:26
function _installActivityCounter()
{
var attributes = ["statecode"];
var condition = { "attribute": "regardingobjectid", "op": "Equal", "value": crmForm.ObjectId };
var activities = _retrieveMultiple("activitypointer", attributes, [condition]);
var iActivity = 0;
for (var i = 0; i < activities.length; i++)
{
switch (activities[i].statecode.value)
{
case "Open": iActivity++; break;
case "Scheduled": iActivity++; break;
}
}
if (document.getElementById('navActivities') != null)
{
document.getElementById('navActivities').getElementsByTagName('NOBR')[0].innerText = document.getElementById('navActivities').getElementsByTagName('NOBR')[0].innerText + " (" + iActivity + ")";
}
}
25. Mai 2010 13:09