<?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 How to create action on document that opens page returned from webscript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73341#M23637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this must be something simple but I can't seem to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom webscript which returns a html page accessible by going to a url like so:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://localhost:8080/alfresco/s/sts/report?format=html&amp;amp;nodeType=workspace://SpacesStore/9b7ae522-75ae-4960-b579-1ec805f32797" title="http://localhost:8080/alfresco/s/sts/report?format=html&amp;amp;nodeType=workspace://SpacesStore/9b7ae522-75ae-4960-b579-1ec805f32797" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/sts/report?nodeRef=workspace://SpacesStore/9b7ae522-75ae-4960-b579-1ec805f…&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only argument the webscript needs is the nodeRef={nodeRef} argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is create an entry in the Document Actions pane (available for every document) that will take me to the url with the nodeRef argument of the respective document. By document actions pane I mean this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19706" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/19706_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing the solution lies with custom actions but I can't figure out how and where to define the action.&lt;/P&gt;&lt;P&gt;Btw, I used the alfresco maven sdk to create an all-in-one project. I plan to take the resulting amp files and install them into the production alfresco server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Edit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to create an entry with an action of type:"link" and the following params:&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;param &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="href"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;gt;&lt;/SPAN&gt;/alfresco/s/sts/report?nodeRef={node.nodeRef}&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/param&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;param &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="target"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;gt;&lt;/SPAN&gt;_blank&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The problem with this solution is it requires additional authentication for "/alfresco/s" (service). Is there a way to access my webscript from a share page so the user is already logged in?&lt;/P&gt;&lt;P&gt;For example: "localhost:8080/share/page/sts/report?nodeRef={node.nodeRef}"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2018 12:29:22 GMT</pubDate>
    <dc:creator>lex91</dc:creator>
    <dc:date>2018-03-22T12:29:22Z</dc:date>
    <item>
      <title>How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73341#M23637</link>
      <description>I know this must be something simple but I can't seem to find the solution.I have a custom webscript which returns a html page accessible by going to a url like so:http://localhost:8080/alfresco/s/sts/report?nodeRef=workspace://SpacesStore/9b7ae522-75ae-4960-b579-1ec805f…&amp;nbsp;&amp;nbsp;The only argument the webs</description>
      <pubDate>Thu, 22 Mar 2018 12:29:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73341#M23637</guid>
      <dc:creator>lex91</dc:creator>
      <dc:date>2018-03-22T12:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73342#M23638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you would like to bypass an authentication from share you can use the proxy authentication URL.Using below url you can call any webscript from alfresco share and it will by pass the authentication..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="http://localhost:8080/share/proxy/alfresco-noauth/api/com/mywebscript/demo" rel="nofollow noopener noreferrer" style="color: #0d47a1; background-color: #ffffff; border: 0px; text-decoration: underline; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://localhost:8080/share/proxy&lt;/A&gt;&amp;nbsp;+"alfresco webscript URL"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:36:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73342#M23638</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-03-22T16:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73343#M23639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;A __default_attr="97982" __jive_macro_name="user" _jive_internal="true" data-id="97982" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/krutik.jayswal" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt; for your response!&lt;/P&gt;&lt;P&gt;Unfortunately, this method is not working for me. I tried the following link:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://localhost:8080/share/proxy/sts/report" title="http://localhost:8080/share/proxy/sts/report" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/sts/report&lt;/A&gt;...&lt;/P&gt;&lt;P&gt;Anything I put after .../share/proxy/ gives me "Invalid EndPoint Id:" error&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/19708_pastedImage_2.png" style="width: 814px; height: 42px;" /&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I want to mention I am using an all-in-one alfresco maven sdk project and I defined my webscript in the platform/repo module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 06:28:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73343#M23639</guid>
      <dc:creator>lex91</dc:creator>
      <dc:date>2018-03-23T06:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73344#M23640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;A class="" href="http://localhost:8080/share/proxy/sts/report" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://localhost:8080/share/proxy/&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;alfresco&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;/sts/&lt;/A&gt;..................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 06:41:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73344#M23640</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-03-23T06:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73345#M23641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that was it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:01:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73345#M23641</guid>
      <dc:creator>lex91</dc:creator>
      <dc:date>2018-03-23T07:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73346#M23642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that how is your final action looks like? I am trying to do the same thing but I need to add a custom property value in the href any idea?&lt;/P&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; border: 0px; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #e8bf6a; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;&amp;lt;param &lt;/SPAN&gt;&lt;SPAN style="color: #bababa; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;="href"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; color: #a9b7c6; font-weight: inherit; font-size: 15.0667px;"&gt;www.google.com/{customModel:CustomProperty}&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;&amp;lt;/param&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;&amp;lt;param &lt;/SPAN&gt;&lt;SPAN style="color: #bababa; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;="target"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;_blank&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a; border: 0px; font-weight: inherit; font-size: 15.0667px;"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 09:30:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73346#M23642</guid>
      <dc:creator>antonis</dc:creator>
      <dc:date>2018-06-12T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73347#M23643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use , [jsNode.properties.customModel_CustomProperty]..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer share-documentlibrary-config.xml for more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 09:42:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73347#M23643</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-06-12T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73348#M23644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;action id="alfresco.tutorials.doclib.action.goToGoogle1" icon="google" type="link" label="alfresco.tutorials.doclib.action.goToGoogle.label"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;param name="href"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.google.com/[jsNode.properties.dpl_sa]" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.google.com/[jsNode.properties.dpl_sa]&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;param name="target"&amp;gt;_blank&amp;lt;/param&amp;gt;&lt;BR /&gt; &amp;lt;/action&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model prefix: dpl&amp;nbsp;&lt;/P&gt;&lt;P&gt;property prefix/name: sa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way the model has been created by the share UI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:50:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73348#M23644</guid>
      <dc:creator>antonis</dc:creator>
      <dc:date>2018-06-12T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73349#M23645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;{sNode.properties.customModel_CustomProperty}.....sorry for wrong bracket&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:54:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73349#M23645</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-06-12T12:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73350#M23646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sNode or jsNode xD? where can I find a document about this systax?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:56:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73350#M23646</guid>
      <dc:creator>antonis</dc:creator>
      <dc:date>2018-06-12T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create action on document that opens page returned from webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73351#M23647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked man..Thanks a lot &lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/grin.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;action id="alfresco.tutorials.doclib.action.goToGoogle1" icon="google" type="link" label="alfresco.tutorials.doclib.action.goToGoogle.label"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;param name="href"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.google.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.google.com/&lt;/A&gt;&lt;SPAN&gt;{jsNode.properties.dpl_sa}&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;param name="target"&amp;gt;_blank&amp;lt;/param&amp;gt;&lt;BR /&gt; &amp;lt;/action&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 13:05:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-create-action-on-document-that-opens-page-returned-from/m-p/73351#M23647</guid>
      <dc:creator>antonis</dc:creator>
      <dc:date>2018-06-12T13:05:21Z</dc:date>
    </item>
  </channel>
</rss>

