An interesting thread on trees
Basetree You can subclass basetree to build a tree control with your own look and feel. Basetree has two content areas: item and children. The item view is where the visual component of the tree should be placed. Any view that you want to place in the tree node should be placed in item. You can use placement="item". The children view is the defaultplacement for basetree.
lzTree A derived tree with auto options
Satya - Friday, April 22, 2005 10:50:53 AM
Make sure you include this at the top to develop with trees
(canvas height="620") (include href="lz/tree.lzx"/)
You have to include the ls/tree.lzx at the top. Otherwise you get all kinds of compiler errors
Satya - Friday, April 22, 2005 2:33:02 PM
Can I create a tree object on the fly?
Can I create a tree object on the fly by going through an xml data set?
Satya - Friday, April 22, 2005 2:33:59 PM
What does a * in datapath signify?
In populating trees all the tree examples are using a * syntax for specifying datapaths. What is its significance?
Satya - Friday, April 22, 2005 2:35:48 PM
What is the $path constraint?
In populating trees from data sets they are using a
$path{'@name'}
syntax. What the hell is it. I know that $ is a constraint by looking at their language manual. But there is no "path" being constraint.
Satya - Friday, April 22, 2005 2:37:00 PM
How is data replication combined to get trees
It is still a mystery how a tree is populated using the data replication techniques. The standard metaphor is confusing. Clarify this
Satya - Friday, April 22, 2005 2:38:11 PM
Next tasks
1. Read the language manual
2. Read the guide to see if we can get some clarity on data replication and xpath
Satya - Friday, April 22, 2005 5:21:04 PM
Understand attributes better
Read this indepth chapter on events, methods, and attributes.
Satya - Tuesday, April 26, 2005 11:24:28 AM
How to declare a dataset at run time?
An http dataset may have arguments into it. You may want to set this at run time. How is this done.
Satya - Friday, April 29, 2005 8:47:08 AM
How can I instantiate a new xml node
A node requires a name, text, and attributes. What is the syntax. Especially the attributes.
Satya - Friday, April 29, 2005 8:48:09 AM
What is a dictionary object?
Apparently when instantiating a node you will need a dictionary object for its attributes. There doesn't seem to be docs on this. Check the forum for it.
Satya - Friday, April 29, 2005 8:55:55 AM
How can I copy a set of nodes from one tree to another xml tree
Apparently this is done through duplicating a data pointer and doing an addnode using that data pointer. But if you have a whole data set to add you may have to walk through each child node and add it to them. See if you can write a utility function to do this.
Satya - Friday, April 29, 2005 8:56:47 AM
How can I refresh a tree
After I update a tree data, how can I tell the tree to refresh itself with the new nodes?
Satya - Friday, April 29, 2005 9:11:22 AM
Another interesting thread on trees
Tress and their underlying data sets. Issues, solutions etc.