IWItem.getChildren()
// Get the list of all root level items// This code assumes that the item(s) we want marked invisible are 4 levels deep.// Adjust accordinglyTopLevel = IWDatacapture.getRootItems();for(i = 0; i< TopLevel.length; i++) { NextLevel = TopLevel[ i ].getChildren(); for(j = 0; j < NextLevel.length; j++) { ThirdLevel = NextLevel[ j ].getChildren(); for(k = 0; k < ThirdLevel.length; k++) { FourthLevel = ThirdLevel[ k ].getChildren(); for(m = 0; m < FourthLevel.length; m++) { // You probably want to filter, to make sure you only set visibility on the appropriate elements, // rather than everything at the fourth level. // I leave that as an excercise for the reader FourthLevel[ m ].setVisible(false); } } }}
Edited by Dwayne on 09/21/04 09:29 AM (server time).