cancel
Showing results for 
Search instead for 
Did you mean: 

Getting node from 'roothome' in controller

sam4alf
Champ in-the-making
Champ in-the-making
Hello all,

I have a controller file (.js) and I want to get node using NodeRef inside this controller. I tried something like:

var curNode = roothome.getNodeFromString(nodeRef);

but this doesn't work. There is no function like "getNodeFromString". Do you have any idea on where I can get a list of methods for "roothome"?

Thanks,
Sarma.
1 REPLY 1

sam4alf
Champ in-the-making
Champ in-the-making
Ok, I found the solution.

var curNode = search.findNode(nodeRef);