<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Actions in the web client in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109247#M76671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also interested in this question !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact I succeeded to add a dialog in the menu but not a simple action …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to do so here is a beginning of answer: an action extends ActionExecuterAbstractBase and is call through the method executeImpl, and a dialog extends BaseContentWizard and is call through the method finishImpl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to add a dialog to the menu just follow the link…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can we add a simple action to this menu ??? GOOD QUESTION ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 12:37:34 GMT</pubDate>
    <dc:creator>jey</dc:creator>
    <dc:date>2007-06-05T12:37:34Z</dc:date>
    <item>
      <title>Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109246#M76670</link>
      <description>Hi, I successfully followed the guide about writing custom Actions in the wiki (Custom_Action and Custom_Action_UI). The action runs fine from the "run action" action. I then read http://wiki.alfresco.com/wiki/Simple_Customisations#Adding_Custom_Menu_Itemsabout adding an entry in the menu, but I did</description>
      <pubDate>Tue, 05 Jun 2007 11:14:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109246#M76670</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-06-05T11:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109247#M76671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also interested in this question !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact I succeeded to add a dialog in the menu but not a simple action …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to do so here is a beginning of answer: an action extends ActionExecuterAbstractBase and is call through the method executeImpl, and a dialog extends BaseContentWizard and is call through the method finishImpl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to add a dialog to the menu just follow the link…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can we add a simple action to this menu ??? GOOD QUESTION ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:37:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109247#M76671</guid>
      <dc:creator>jey</dc:creator>
      <dc:date>2007-06-05T12:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109248#M76672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found this related post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=5720&amp;amp;highlight=action" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?t=5720&amp;amp;highlight=action&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 15:28:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109248#M76672</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-06-05T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109249#M76673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As mentioned in the post linked in above, server actions are different to client "actions" and there is not a direct way to configure one in to the actions config in the client. It would be tricky anyway as most actions require arguments of some kind - most of which you would not be able to specify in config. However it can be done using the JavaScript API, the JavaScript API can create and execute server-side actions as it is capable of setting the required arguments to the action object. There are docs and example here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Actions_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Actions_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have created your script that can launch your action, you can then configure in the script to your client action, the 'script' parameter for action config is discussed here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Externalised_Client_Actions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Externalised_Client_Actions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 16:52:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109249#M76673</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-06-05T16:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109250#M76674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks four your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to build a javascript action to run my action… &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First off all I'll read the article of the wiki that you mentioned &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 07:47:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109250#M76674</guid>
      <dc:creator>jey</dc:creator>
      <dc:date>2007-06-06T07:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109251#M76675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't understand that actions were different from client actions..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I put the following lines in the config:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;actions&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;action id="sign_action"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;label&amp;gt;Firma il documento&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;image&amp;gt;/images/icons/FileActions_small.gif&amp;lt;/image&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;gt;/Company Home/Data Dictionary/Scripts/_activate_action.js&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;params&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;param name="noderef"&amp;gt;#{actionContext.nodeRef}&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/params&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/action&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;!– Add action to more actions menu for each space –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;action-group id="document_browse"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;action idref="sign_action" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/action-group&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/actions&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/config&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;and in _activate_action.js script i have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; // create sign action&lt;BR /&gt;&amp;nbsp; var sign= actions.create("sign-document");&lt;BR /&gt;&amp;nbsp; // execute action against a document&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; sign.execute(args["noderef"]);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;However the last line throws the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: Failed to execute script 'workspace://SpacesStore/67bd5012-1419-11dc-8819-698de64003c4': Can't find method org.alfresco.repo.jscript.ScriptAction.execute(string). (AlfrescoScript#4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'workspace://SpacesStore/67bd5012-1419-11dc-8819-698de64003c4': Can't find method org.alfresco.repo.jscript.ScriptAction.execute(string). (AlfrescoScript#4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.error.AlfrescoRuntimeException: Can't find method org.alfresco.repo.jscript.ScriptAction.execute(string). (AlfrescoScript#4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.EvaluatorException: Can't find method org.alfresco.repo.jscript.ScriptAction.execute(string). (AlfrescoScript#4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems an error in the javascript api rather than in my program (the action should run fine), any ideas? Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 14:06:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109251#M76675</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-06-06T14:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109252#M76676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's not an error in the JavaScript API - the issue is that the API deals with objects rather than simple NodeRef objects like the repository. You need to convert the noderef into a JavaScript Node object as that is what is expected by the execute() method - so the following should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; // create sign action&lt;BR /&gt;&amp;nbsp; var sign= actions.create("sign-document");&lt;BR /&gt;&amp;nbsp; // execute action against a document&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; sign.execute(search.findNode(args["noderef"])); &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 14:52:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109252#M76676</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-06-06T14:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Actions in the web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109253#M76677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you &lt;/SPAN&gt;&lt;STRONG&gt;very&lt;/STRONG&gt;&lt;SPAN&gt; much! Now it works as expected&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 16:19:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-actions-in-the-web-client/m-p/109253#M76677</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-06-06T16:19:11Z</dc:date>
    </item>
  </channel>
</rss>

