Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
Searching the WebDataTree via the client api
posted

Hi,

I'm currently implementing some client-side functionality to search a WebDataTree, and was hoping to clarify a few details about the tree csom.

The server-side api provides an "AllNodes" property which contains an array of every node already in depth-first order.  Is there a similar mechanism provided via the csom?  Or would I need to implement my own depth-first search algorithm in this case?  This would also be useful if I had a way to uniquely identify a specific node (for example, index in AllNodes array), for easier retrieval later on.  If I'm only able to store the node value or relative index, it seems as though I'd need to search through the tree each time I wanted to re-retrieve it.  

Thanks,

Rob Quick