Page 1 of 1

UITree 2

PostPosted: Thu Mar 31, 2011 7:06 pm
by wir33658
Hi, there is already a thread about the UITree.

Anyhow, I did not quiet understand how to setup a UITree properly (using a MemDataBook). Does anybody mind putting some complete example in here ?

Thanks, Rob.

Re: UITree 2

PostPosted: Thu Mar 31, 2011 7:40 pm
by Support@SIB
A complete example is available in our showcase app at http://demo.sibvisions.org/showcase/.

Open the Tables screen and go to "Source" tab. The tree uses a databook which is self-joined.

A very short Tree example:

Code: Select all
UITree tree = new UITree();
tree.setDataBooks(rdbMaster, rdbSub);

You need two data books and create a master reference between them. There is no difference between Master/Detail remote databooks which are used in an UITable or an UITree...