<?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 write webscript to get multi value properties in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51676#M19587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already provided&amp;nbsp;all relevant hints. Switch from&amp;nbsp;model.otherreldivisions to&amp;nbsp;this.otherreldivisions in your JavaScript, and use cpsDoc.otherreldivisions instead of just&amp;nbsp;otherreldivisions in your FreeMarker file. You are already dealing with the multi-valued properties correctly otherwise...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jan 2018 16:44:41 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-01-21T16:44:41Z</dc:date>
    <item>
      <title>How to write webscript to get multi value properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51672#M19583</link>
      <description>Hi,I am developing an webscript to extract some meta data in the alfresco repository. my files are below.cps-commissionpaperdetails.get.desc.xml&amp;lt;webscript&amp;gt;&amp;lt;shortname&amp;gt;Search Cps Documents&amp;lt;/shortname&amp;gt;&amp;lt;description&amp;gt;Returns metadata as JSON for all Cps documents in the repository</description>
      <pubDate>Sat, 20 Jan 2018 19:45:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51672#M19583</guid>
      <dc:creator>anuradha1</dc:creator>
      <dc:date>2018-01-20T19:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write webscript to get multi value properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51673#M19584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is that you are setting and accessing the otherreldivisions differently than all the other properties.&lt;/P&gt;&lt;P&gt;Inside of your constructor for the CpsDocumentInfo you are setting&amp;nbsp;model.otherreldivisions instead of this.otherreldivisions, and in the FreeMarker you are accessing otherreldivisions again from the global variable context, instead of the cpsDoc. Because of that you will only ever show the otherreldivisions of the last node processed in the JavaScript code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 13:21:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51673#M19584</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-21T13:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to write webscript to get multi value properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51674#M19585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for replying me Axel.&lt;/P&gt;&lt;P&gt;I have tried in various ways, but it gave me some errors. Please can you help me correct my code. Because i am completely new to free marker.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:33:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51674#M19585</guid>
      <dc:creator>anuradha1</dc:creator>
      <dc:date>2018-01-21T15:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to write webscript to get multi value properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51675#M19586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;otherreldivisions&lt;SPAN&gt;&amp;nbsp; is a multi valued property, so that's why i am accessing it using a different way than others.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:35:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51675#M19586</guid>
      <dc:creator>anuradha1</dc:creator>
      <dc:date>2018-01-21T15:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to write webscript to get multi value properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51676#M19587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already provided&amp;nbsp;all relevant hints. Switch from&amp;nbsp;model.otherreldivisions to&amp;nbsp;this.otherreldivisions in your JavaScript, and use cpsDoc.otherreldivisions instead of just&amp;nbsp;otherreldivisions in your FreeMarker file. You are already dealing with the multi-valued properties correctly otherwise...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 16:44:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51676#M19587</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-21T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to write webscript to get multi value properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51677#M19588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Axel.&lt;/P&gt;&lt;P&gt;I modified the code as you said &amp;amp; it works perfectly. I need to learn more about free marker. Can you plz suggest good resource to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 18:39:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51677#M19588</guid>
      <dc:creator>anuradha1</dc:creator>
      <dc:date>2018-01-21T18:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write webscript to get multi value properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51678#M19589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I ever used was the &lt;A href="https://freemarker.apache.org/docs/index.html" rel="nofollow noopener noreferrer"&gt;manual&lt;/A&gt;. Bear in mind though that Alfresco uses FreeMarker 2.3.20 (in Alfresco 5.1/5.2), not the most current version documented there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 07:39:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-write-webscript-to-get-multi-value-properties/m-p/51678#M19589</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-22T07:39:40Z</dc:date>
    </item>
  </channel>
</rss>

