CRM 2011 JS 设置Tab Expand
var ROSHAN = {};
ROSHAN.expandCollapseTab = function () {
var expand = Xrm.Page.getAttribute("mag_expandtab").getValue();
if (expand)
{
Xrm.Page.ui.tabs.get("tab.details").setDisplayState("expanded");
}
else
{
Xrm.Page.ui.tabs.get("tab.details").setDisplayState("collapsed");
}
}