<?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 webscript from a button in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscript-from-a-button/m-p/75593#M23988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to invoke a custom java backed webscript from a button I created in a custom widget js file.&lt;BR /&gt;here is my code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var id=5&lt;BR /&gt;var myButton = new AlfButton({&lt;BR /&gt; label: "Supprimer",&lt;BR /&gt; onClick: function(){&lt;BR /&gt;var url = Alfresco.constants.PROXY_URI + "test/delete?id="+id;&lt;/P&gt;&lt;P&gt;this.serviceXhr({url : url,&lt;BR /&gt; method: "GET"});&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; domConstruct.place(myButton.domNode,"id");&lt;BR /&gt;&lt;BR /&gt;the button is being displayed and when I try a simple alert message, it works good.&lt;BR /&gt;but when I try the previous code, nothing happens. Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2019 15:50:42 GMT</pubDate>
    <dc:creator>riadhazzouz</dc:creator>
    <dc:date>2019-04-16T15:50:42Z</dc:date>
    <item>
      <title>webscript from a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-from-a-button/m-p/75593#M23988</link>
      <description>I am trying to invoke a custom java backed webscript from a button I created in a custom widget js file.here is my code :&amp;nbsp;var id=5var myButton = new AlfButton({ label: "Supprimer", onClick: function(){var url = Alfresco.constants.PROXY_URI + "test/delete?id="+id;this.serviceXhr({url : url, method: "</description>
      <pubDate>Tue, 16 Apr 2019 15:50:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-from-a-button/m-p/75593#M23988</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-16T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: webscript from a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-from-a-button/m-p/75594#M23989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this helps: &lt;A class="link-titled" href="https://github.com/angelborroy/alfresco-add-menu-sample/blob/master/add-menu-dl-share/src/main/resources/META-INF/sp/modules/custom-button-sharedfiles.js" title="https://github.com/angelborroy/alfresco-add-menu-sample/blob/master/add-menu-dl-share/src/main/resources/META-INF/sp/modules/custom-button-sharedfiles.js" rel="nofollow noopener noreferrer"&gt;alfresco-add-menu-sample/custom-button-sharedfiles.js at master · angelborroy/alfresco-add-menu-sample · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:37:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-from-a-button/m-p/75594#M23989</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2019-04-17T09:37:33Z</dc:date>
    </item>
  </channel>
</rss>

