[Laszlo-user] emptying a dataset
Jesse Norell
jesse at kci.net
Thu May 22 10:35:29 PDT 2008
Hello,
What is the proper way to empty a dataset? If I use setChildNodes([])
it seems to do what I want, except inspecting the dataset shows "data"
still holds the old values. Maybe that's not a problem? I could follow
up the setChildNodes() with a datasetname.data=[], but I don't know if
that's a bad thing to do or not (has side effects? memory leaks?).
(And a maybe related question: do you need to worry about memory leaks
in openlaszlo apps?)
I've also tried to use destroy() and assign a new LzDataset(), but the
databound components don't work after that.
I imagine you could loop through the entire dataset calling
removeChild() on each child node, but I suspect that would be
inefficient for large datasets.
Thanks,
Jesse
--
Jesse Norell
Kentec Communications, Inc.
jesse at kci.net
More information about the Laszlo-user
mailing list