AnsweredAssumed Answered

search.findNode() and Associations

Question asked by ghernando on Mar 5, 2013
Latest reply on Mar 9, 2013 by ghernando
I want to be able to find the working copy node associated with a checkedout document.
I'm using Javascript and have a ScriptNode for the original document found by using search.findNode(nodeRef).

When I use the node browser I see that the aspect cm:checkoutOut is set on the original node and that there is an association {}workingcopylink
also set.

In Javascript I'm able to check node.hasAspect("cm:checkoutOut") and it correctly says that it is set.
But I'm unable to get the workingcopy. 

I tried
But it gives an error saying that it is null.

How can I get the working copy?