AnsweredAssumed Answered

Custom Document Library Action and to get current node the user is in

Question asked by sihnu on Sep 1, 2014
Latest reply on Sep 4, 2014 by sihnu
Hi,

I'm working on a custom document library action. The action itself should be quite simple at least as an idea. The purpose is to copy some nodes behind absolute path to the current space the user is in. I've created a webscript that handles the copying of nodes and I've managed to call the webscript when the button is clicked. However, I've problems with finding the node the current user is in. There are two possibilities. To get the node from webscript. But is this even possible? Does webscript have any relations to the user or rather the current space the user is in? Other choice would be to pass the space reference as a parameter and use Lucene to search for the space. But how could I find the space reference? I've searched it from Alfresco object but it seems like it is not holding information about current space.

Any thoughts would be appreciated.

Oops.. this should be under development forum. Sorry.

Outcomes