Forum Discussion
christopher_gillis
8 years agoCommunity Manager
Hello,
You can use the sample code below from an onFormPopulated event to accomplish this behavior of only displaying the relationship tabs when an item is locked.
var lc = parent.dijit.byId("formContentPane");
var bc = parent.dijit.byId("CenterBorderContainer");
// NOTE: You may need to play around with these height values based on the dimensions of your screen
if (aras.isLocked(document.thisItem.node)) {
// Move the tabs onto the screen
lc.resize({ h: 400 });
parent.windowStateObject.state = 'tabs on';
} else {
// Move the tabs off the screen
lc.resize({ h: 1000 });
parent.windowStateObject.state = 'tabs off';
}
bc.layout();
Chris
___________________________________
Christopher Gillis
Aras Labs Software Engineer