Novell is now a part of Micro Focus

I am writing a snap-in for ConsoleOne. I...

Articles and Tips: qna

01 Sep 2002


Q.

I am writing a snap-in for ConsoleOne. I want to programatically search a given sub-tree (for which I have the root ObjectEntry) for classes of a specific type. This has to take place with no user intervention, so I can't use the search dialogues.

I can't believe something so fundamental is missing from the ConsoleOne APIs, but I've been looking through documentation all day and can't find anything useful. Even if I can get a child collection for each ObjectEntry, that would be enough so that I can filter it myself, but a filtered search would be better. Go on, put me out of my misery!

A.

You will probably want to use the Shell.getChildren method, which seems to offer exactly what you would like to do. For more information about the ConsoleOne SDK, visit http://developer.novell.com/ndk/nco.htm.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates