<?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: How to get JSON object in repository webscript, which is passed from aikau page in POST request? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26724#M11506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your goal is to submit form and create a node of your custom type,&lt;/P&gt;&lt;P&gt;In publish payload url instead of your web script url specify:&lt;/P&gt;&lt;P&gt;url : "api/type/&amp;lt;&amp;lt;your-type&amp;gt;&amp;gt;/formprocessor",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will submit form and create node is specified location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2017 09:22:38 GMT</pubDate>
    <dc:creator>hardik1512</dc:creator>
    <dc:date>2017-02-28T09:22:38Z</dc:date>
    <item>
      <title>How to get JSON object in repository webscript, which is passed from aikau page in POST request?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26722#M11504</link>
      <description>This is my web console snippet.My form widget code.var site = page.url.templateArgs.site;// Read the node reference of Document Libraryvar alfDestination = null;var result = remote.call("/slingshot/doclib/container/" + site + "/documentLibrary");if (result.status.code == status.STATUS_OK) { alfDesti</description>
      <pubDate>Mon, 27 Feb 2017 12:58:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26722#M11504</guid>
      <dc:creator>manav</dc:creator>
      <dc:date>2017-02-27T12:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get JSON object in repository webscript, which is passed from aikau page in POST request?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26723#M11505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't understand where you want to use your payload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a similar probleme I did a custom widget&lt;/P&gt;&lt;P&gt;for example to get the label of my textBox&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.serviceXhr({&lt;BR /&gt; url : AlfConstants.PROXY_URI + "your_webscript_repo_url",&lt;BR /&gt; method: 'GET',&lt;BR /&gt; responseTopic: "REPONSE_TOPIC",&lt;BR /&gt; successCallback: this.loadPropertiesXhr,&lt;BR /&gt; &lt;BR /&gt; callbackScope: &lt;SPAN style="color: #ff6600;"&gt;this&amp;nbsp;&lt;SPAN style="color: #333333;"&gt;&amp;lt;==== that's your payload&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loadPropertiesXhr: function blabla_loadPropertiesXhr(response) {&lt;BR /&gt; console.log(response);&lt;BR /&gt; &lt;BR /&gt; this.statutLabel.setValue(response.properties[0].statut);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 15:58:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26723#M11505</guid>
      <dc:creator>redraccoon</dc:creator>
      <dc:date>2017-02-27T15:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get JSON object in repository webscript, which is passed from aikau page in POST request?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26724#M11506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your goal is to submit form and create a node of your custom type,&lt;/P&gt;&lt;P&gt;In publish payload url instead of your web script url specify:&lt;/P&gt;&lt;P&gt;url : "api/type/&amp;lt;&amp;lt;your-type&amp;gt;&amp;gt;/formprocessor",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will submit form and create node is specified location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 09:22:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26724#M11506</guid>
      <dc:creator>hardik1512</dc:creator>
      <dc:date>2017-02-28T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get JSON object in repository webscript, which is passed from aikau page in POST request?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26725#M11507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your repository&amp;nbsp;webscript&amp;nbsp;has the contoller&amp;nbsp;written in Java ,&amp;nbsp;it will receive&amp;nbsp;the payload in the variable request.getContent().getContent(). You can further parse the JSON object to retrieve the values .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 16:01:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-json-object-in-repository-webscript-which-is-passed/m-p/26725#M11507</guid>
      <dc:creator>mbajpai</dc:creator>
      <dc:date>2017-03-01T16:01:56Z</dc:date>
    </item>
  </channel>
</rss>

