21. Dezember 2011 11:58
TabExpand: function () {
// Subject ermitteln
var subjectlookup = new Array();
subjectlookup = Xrm.Page.getAttribute("subjectid").getValue();
subjectlookup[0].id;
subjectlookup[0].name;
subjectlookup[0].entityType;
//----------------------------------------------------------------
// Betreff abgleichen ob CR zutrifft
//----------------------------------------------------------------
if (subjectlookup[0].id == "{A84303E9-DF1F-E111-9619-005056B200FB}" // Betreff CR
|| subjectlookup[0].id == "{52402341-E01F-E111-9619-005056B200FB}" // Betreff CR / Programmierung
|| subjectlookup[0].id == "{42391F38-E01F-E111-9619-005056B200FB}" // Betreff CR / Bericht
|| subjectlookup[0].id == "{0AB6D82F-E01F-E111-9619-005056B200FB}" // Betreff CR / Workflow
|| subjectlookup[0].id == "{02239721-E01F-E111-9619-005056B200FB}" // Betreff CR / Anpassung
|| subjectlookup[0].id == "{6CF6D3F1-DF1F-E111-9619-005056B200FB}") // Betreff CR / Einstellung
{
Xrm.Page.ui.tabs.get("notesandkb").setDisplayState("expanded");
}
else
{
Xrm.Page.ui.tabs.get("notesandkb").setDisplayState("collapsed");
}
}