Answer question
New 800xA workplace tool to close all Faceplates (but no trends)
Hello,
in "Library Structure/Tools/Combined Appbar Tools" I would like to create a new "Close All Faceplates" tool.
Basically, it shall close all faceplates, but not any trends.
From the existing "Close All Overlap Tools" I can use the existing code (see below), but now I need to find a way to identify faceplates or trends in order to close them or not to close them.
Any ideas what code I could use instead to replace if (contents(i).Mode == "overlap") ??
Kind regards,
Michael
in "Library Structure/Tools/Combined Appbar Tools" I would like to create a new "Close All Faceplates" tool.
Basically, it shall close all faceplates, but not any trends.
From the existing "Close All Overlap Tools" I can use the existing code (see below), but now I need to find a way to identify faceplates or trends in order to close them or not to close them.
Any ideas what code I could use instead to replace if (contents(i).Mode == "overlap") ??
Kind regards,
Michael
// Close overlapping windows
var contents = document.body.ABBContent.Panel.Contents;
var count = contents.count;
var i = 0;
for (i=0;i<count;i++)
{
if (contents(i).Mode == "overlap")
contents(i).Close();
}