<?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: Binding the adf-webscript-get component into a button in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15417#M6838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kinda solved it by doing this by changing the scriptPathDocs, from documentLibrary folder to repository/root/Company Home folder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;scriptPathDocs: string = 'googledocs/createContent?contenttype=document&amp;amp;parent=workspace://SpacesStore/cd49a7d6-8e38-487f-8af4-9fed5027c8c9';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;onGoogleDocsCreate() {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.scriptPathDocs = 'googledocs/createContent?contenttype=document&amp;amp;parent=workspace://SpacesStore/' + this.documentList.currentFolderId;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.apiService.getInstance().webScript.executeWebScript('GET', this.scripPathDocs, this.scriptArgs, this.contextRoot, this.servicePath).then((webScriptdata) =&amp;gt; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.data = webScriptdata;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.documentList.reload();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to create a google document in any folder except in the repository/root/Company Home location. and this is the error I'm getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;gt; ERROR Error: "Uncaught (in promise): Error: {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status" : {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 500,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Internal Error",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "An error inside the HTTP server which prevented it from fulfilling the request."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;},&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "09280051 Node does not exist: workspace:\/\/SpacesStore\/-root- (status:null)",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "exception" : "",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "callstack" : [],&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "server" : "Enterprise v5.2.3 (r852994b1-b12) schema 10,065",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "time" : "Oct 28, 2018 10:31:15 PM"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Oct 2018 22:39:36 GMT</pubDate>
    <dc:creator>rsocorro</dc:creator>
    <dc:date>2018-10-28T22:39:36Z</dc:date>
    <item>
      <title>Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15409#M6830</link>
      <description>Is there a way to bind the adf-webscript-get component into a button that is in a dropdown? Because right now the calling of the webscript is happening on page reload, and what I want to do is run that when the button is clicked. Cheers!&amp;lt;adf-sidebar-action-menu&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mat-icon sidebar-menu-ti</description>
      <pubDate>Tue, 16 Oct 2018 20:52:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15409#M6830</guid>
      <dc:creator>rsocorro</dc:creator>
      <dc:date>2018-10-16T20:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15410#M6831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;what the&amp;nbsp;webscript&amp;nbsp;does :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/content-services/webscript/webscript.component.ts#L94" title="https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/content-services/webscript/webscript.component.ts#L94" rel="nofollow noopener noreferrer"&gt;alfresco-ng2-components/webscript.component.ts at development · Alfresco/alfresco-ng2-components · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could associate the same call at on whatever onClick event of your app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:22:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15410#M6831</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-10-17T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15411#M6832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;B&gt;Eugenio Romano&lt;/B&gt;‌ said you can web script on an onClick event of your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call custom web script&amp;nbsp;by&amp;nbsp;&lt;STRONG&gt;executeWebScript()&amp;nbsp;&lt;/STRONG&gt;refer this for detail:-&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-js-api/tree/master#custom-web-scripts-call" title="https://github.com/Alfresco/alfresco-js-api/tree/master#custom-web-scripts-call" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/alfresco-js-api at master&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:23:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15411#M6832</guid>
      <dc:creator>rohit9637</dc:creator>
      <dc:date>2018-10-17T13:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15412#M6833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more question &lt;B&gt;Eugenio Romano&lt;/B&gt;‌, because I'm using a webscript to create a Google Docs, is there a way to change/construct where the Google Docs is being created? Like for instance if I want to create it inside a folder? because right now it is by default getting created in the documentLibrary folder even if I try to create it somewhere else. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:55:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15412#M6833</guid>
      <dc:creator>rsocorro</dc:creator>
      <dc:date>2018-10-23T20:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15413#M6834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it depends from your webscript&amp;nbsp;that actually I don't know wht&amp;nbsp;it does inside. I guess I need more context&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 10:00:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15413#M6834</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-10-24T10:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15414#M6835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;scriptPathDocs: string = 'googledocs/createContent?contenttype=document&amp;amp;parent=workspace://SpacesStore/8f2105b4-daaf-4874-9e8a-2152569d109b';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahh got it now, in my scriptPathDocs, it has the folder documentLibrary value by default in it. Now, how will I approach this if I want the document to be created in a specific location?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 03:02:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15414#M6835</guid>
      <dc:creator>rsocorro</dc:creator>
      <dc:date>2018-10-25T03:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15415#M6836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you need to change it&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 09:00:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15415#M6836</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-10-25T09:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15416#M6837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i guess you need to pass a parameter to it but for the webbscript&amp;nbsp;the ECM part of the community portal can help you better&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 09:01:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15416#M6837</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-10-25T09:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Binding the adf-webscript-get component into a button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15417#M6838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kinda solved it by doing this by changing the scriptPathDocs, from documentLibrary folder to repository/root/Company Home folder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;scriptPathDocs: string = 'googledocs/createContent?contenttype=document&amp;amp;parent=workspace://SpacesStore/cd49a7d6-8e38-487f-8af4-9fed5027c8c9';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;onGoogleDocsCreate() {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.scriptPathDocs = 'googledocs/createContent?contenttype=document&amp;amp;parent=workspace://SpacesStore/' + this.documentList.currentFolderId;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.apiService.getInstance().webScript.executeWebScript('GET', this.scripPathDocs, this.scriptArgs, this.contextRoot, this.servicePath).then((webScriptdata) =&amp;gt; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.data = webScriptdata;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.documentList.reload();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to create a google document in any folder except in the repository/root/Company Home location. and this is the error I'm getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;gt; ERROR Error: "Uncaught (in promise): Error: {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status" : {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 500,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Internal Error",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "An error inside the HTTP server which prevented it from fulfilling the request."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;},&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "09280051 Node does not exist: workspace:\/\/SpacesStore\/-root- (status:null)",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "exception" : "",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "callstack" : [],&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "server" : "Enterprise v5.2.3 (r852994b1-b12) schema 10,065",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "time" : "Oct 28, 2018 10:31:15 PM"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-link-actor-id="server1.conn8.child1/obj2164"&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 22:39:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/binding-the-adf-webscript-get-component-into-a-button/m-p/15417#M6838</guid>
      <dc:creator>rsocorro</dc:creator>
      <dc:date>2018-10-28T22:39:36Z</dc:date>
    </item>
  </channel>
</rss>

