Page 1 of 1

Reference sublevel treeitem objects when node expanded

Posted: Wed Oct 08, 2014 9:53 pm
by Andy Edward
Hi,

Are there any methods to reference the sub-level objects when a node is expanded?

I want to calculate the number of child nodes in a particular node. For example,

-- Master
---- Sub Master 1
---- Sub Master 2
---- Sub Master 3

When I expand MASTER, I would like to get the number of child it has, which is 3

I'm using the ITEMEXPANDED option in DCTREEROOT

Any ideas?

Best Regards,

Andy

Re: Reference sublevel treeitem objects when node expanded

Posted: Thu Oct 09, 2014 12:25 am
by Auge_Ohr
Andy Edward wrote:Are there any methods to reference the sub-level objects when a node is expanded?
use o:getChildItems() -> aChildItems

Re: Reference sublevel treeitem objects when node expanded

Posted: Thu Oct 09, 2014 7:19 pm
by Andy Edward
Hi Jimmy,

Perfect!

Best Regards,

Andy