In my application I've set up a tree which looks roughly like this:
<tree name="treeRoot" showroot="false" isleaf="false" datapath="ds:/">
<tree isleaf="false" datapath="foo/bar">
<tree datapath="*"/>
</tree>
<tree isleaf="false" datapath="baz/bar">
<tree datapath="*"/>
</tree>
</tree>
The dataset contains other elements which I don't want to be in the tree
which is why I have the two subtrees setup to use a specific datapath
instead of simply using "*". I want the root tree to do something when
new data arrives. My assumption was that whenever I requested data
from the dataset (ds) I would receive an ondata event at my root tree.
I added a method to "treeRoot" which does this:
<method event="ondata>
Data.write("On data");
</method>
When I start my application, I immediately get the 'On data' message,
even though I haven't requested any data from my dataset. However, when
I actually do request data from the dataset, my ondata event doesn't get
called. The tree, however, displays correctly. I'm sure I'm doing
something stupid, but can anyone offer ideas on what I might be doing
wrong?
Thanks!
--
James Howe
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user