AnsweredAssumed Answered

Custom Action Delete Node

Question asked by german on Apr 13, 2008
Latest reply on Apr 17, 2008 by german
Hello everyone, I am new Alfresco.
I wanted to ask whether someone was able to help for a small problem.
I would create a Custom Action to be added to the list of actions to remove a node.
I followed step by step in the SDK example TagginSamples and amended as follows:

public void setNodeService(NodeService nodeService) 
      this.nodeService = nodeService;
   protected void executeImpl(Action action, NodeRef actionedUponNodeRef)
      if (this.nodeService.exists(actionedUponNodeRef) == true)

The action is filed correctly, the node is removed but Alfresco generates errors.
Even with JavaScript the node is removed but Alfresco generates errors:

var b = deleteNode(document);

I am sure that I forget something, if someone can help me.
Thanks to all.