CI BLOG
I will continue to blog about my SharePoint/CRM discoveries, over at Collective Intelligence.
Please update your bookmarks.
a low lit place to come and read my SharePoint/CRM thoughts that I wrote on the cave walls.
Step 1. Alter the Body Tag – replace scroll="no” with style="overflow:auto;”
(This will allow the Body to have a scroll bar when needed.)
Step 2. Add the below <div> tag directly after the <body> <form> tags
<div style="width:960px; margin:auto;”>
Step3. Don’t forget to add the closing </div> tag directly after
<SharePoint:DeveloperDashboard runat="server"/> around line 625
Low
Medium
High
Standby
var PRIORITY_HIGH="High";
var PRIORITY_NORMAL="Medium";
var PRIORITY_LOW="Low";
var PRIORITY_STANDBY="Standby";
var DUE;
var TODAY;
{
TODAY = new Date();
// If Due Date is null, set it to today's date.
DUE = crmForm.all.new_datedue.DataValue;
if (DUE == null)
{
DUE = new Date();
}
// Set the due date based on the value of the Priority field.
switch (crmForm.new_priority.SelectedText) {
case PRIORITY_HIGH:
DUE = TODAY;
break;
case PRIORITY_LOW:
DUE = TODAY.setDate( TODAY.getDate() + 14);
break;
case PRIORITY_NORMAL:
DUE = TODAY.setDate( TODAY.getDate() + 7);
break;
case PRIORITY_STANDBY:
DUE = TODAY.setDate( TODAY.getDate() + 30);
break;
}
crmForm.all.new_datedue.DataValue = DUE;
}
var navId = "nav_new_new_assets_new_assetitem";
if(document.getElementById(navId) != null)
{
var tmp = document.getElementById(navId).onclick.toString();
tmp = tmp.substring(tmp.indexOf("'")+1, tmp.indexOf(";"));
var loadArea = tmp.substring(0, tmp.indexOf("'"));
var roleOrd = (tmp.indexOf("roleOrd") == -1) ? -1 : tmp.substring( tmp.indexOf("roleOrd"), tmp.lastIndexOf("'")).replace("\x3d", "=");
crmForm.all.IFRAME_Items.src = (roleOrd == -1) ? GetFrameSrc(loadArea) : GetFrameSrc(loadArea) + "&" + roleOrd;
}
function GetFrameSrc(tabSet)
{
if (crmForm.ObjectId != null)
{
var id = crmForm.ObjectId;
var type = crmForm.ObjectTypeCode;
var security = crmFormSubmit.crmFormSubmitSecurity.value;
var path = document.location.pathname.substring(0, document.location.pathname.indexOf("edit.aspx")) + "areas.aspx?";
return (path + "oId=" + id + "&oType=" + type + "&security=" + security + "&tabSet=" + tabSet);
}
else
{
return "about:blank";
}
}