Hey, I don't grasp the whole spirit of the question so maybe my answer might be a bit odd. But the thread you linked is, as far as I can remember, only about syntactical sugar. You do have the possibility to use that server generated id as model for each item by implementing the bindProperty method of the delegate. But that would not solve your problem of the search algorithm. So you think of some kind of helper for tree searches? Regards, Martin
Am 07.08.2013 um 15:42 schrieb Michael Elsdörfer <[email protected]>: > I take it this has been discussed before a number of times, e.g. > > http://qooxdoo.678.n2.nabble.com/Adding-quot-modelPath-quot-property-to-qx-data-controller-List-td6648554.html > > So I construct a tree using databinding. I then have a server-side > search function that returns objects or object ids of the type used by > the tree model. I want to select one of the objects indicated by the > server in the tree. > > What Qooxdoo would have me do now is iterate over the tree, recursively, > in order to find the correct instance to add to the selection. > > I could also manually keep a hash of ids => instances, and maintain that > hash whenever new objects are created/deleted. > > Quite possible to do, of course. But no fun whatsoever. Shouldn't > Qooxdoo desire to make this use case, and related ones discussed in the > link above, easier for the developer? > > Michael > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
