AnsweredAssumed Answered

Doclib action against repository

Question asked by tlo on Mar 16, 2016
Latest reply on Apr 28, 2016 by seif

I want to create a menu item in share that lets me download a modified version of the contents of a node. I think the best way to do this is a doclib action with a java-backed web script that modifies the data and then sends it back as a stream.

I think I'm all good on the repo side, but I'm struggling with getting my doclib actions to do anything at all. They show up in the menus where they are supposed to (properly internationalized), but I can't seem to figure out how to connect the javascript properly.

I've gone through
where I am unable to get the showCustomMessage to actually show as well as getting the fileinfo webscript called.

In my add-doclib-actions-extension-modules.xml (which gets the UI elements showing properly), I have:
           <action id="my.test.doclib.action.callWebScript"
              <param name="function">onActionCallWebScript</param>    
and I have a src/main/amp/web/components/documentlibrary/custom-doclib-actions.js that is identical to the one in the tutorial except for the messages to display.

  Alfresco started (Community). Current version: 5.1.0

Can someone please point me in the right direction? Nothing happens when I click those menu buttons, and nothing appears in the logs.