function VisibleSection(tabName,sectionName, true);
//Get Three parameters tabname, section, visible true\false
function VisibleSection(tabName,sectionName, value) {
var tabs = Xrm.Page.ui.tabs.get();
for (var i in tabs) {
var tab = tabs[i];
if (tab.getName() ==tabName) {
var section = tab.sections.get(sectionName);
if (section != null)
section.setVisible(value);
}
}
}
Enjoy,
Rami Heleg
No comments:
Post a Comment