johnafitch
04-27-2007, 11:46 AM
When navigating through an arbitrarily deep tree, I'd like an onclick "uptoparent" view to be available (arrow icon + title attribute from the parent of the "current" node in the dataset). This means the datapath to the uptoparent view must be always be synchronized with (one level above) the "current object" in the canvas (a view, currentd or its datapointer, currentdp).
I've tried many different combinations of setPointer, selectParent, parentNode, setXPath, etc. but haven't found a simple syntax that works. I primarily focused on trying to sync two datapointers, currentdp and parentdp that should always point to a node and its parent node. But my parentdp always ends up undefined.
I think this must be a very common problem in data driven applications - Can anyone suggest a robust and reusable solution?
Thanks,
JohnAFitch
I've tried many different combinations of setPointer, selectParent, parentNode, setXPath, etc. but haven't found a simple syntax that works. I primarily focused on trying to sync two datapointers, currentdp and parentdp that should always point to a node and its parent node. But my parentdp always ends up undefined.
I think this must be a very common problem in data driven applications - Can anyone suggest a robust and reusable solution?
Thanks,
JohnAFitch