<?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 retrieve the possible values of a property from a WebScript? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-the-possible-values-of-a-property-from-a/m-p/16363#M7215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN title="Bonjour à tous!  &amp;nbsp;  "&gt;Hello everyone!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN title="Bonjour à tous!  &amp;nbsp;  "&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="J'aurais besoin de votre aide s'il vous plait.  &amp;nbsp;  "&gt;I would need your help please.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="J'ai un WebScript fonctionnel qui m'affiche tous les fichiers d'un site avec leurs propriétés ainsi que la valeur de ces propriétés.  &amp;nbsp;  "&gt;I have a functional WebScript that shows me all the files of a site with their properties as well as the value of these properties.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="Exemple si j'ai un fichier test.pdf dans mon site, mon WebScript affichera bien:  &amp;nbsp;  "&gt;Example if I have a file test.pdf in my site, my WebScript will display well:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="{http://www.alfresco.org/model/system/1.0}name   test.pdf  "&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="Http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;Http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}name test.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="{http://www.alfresco.org/model/system/1.0}modifier 2016-02-08  "&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="Http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;Http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}modifier 2016-02-08&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="{http://www.alfresco.org/model/system/1.0}creator moi  "&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="Http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;Http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}creator me&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="....  "&gt;....&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="...  "&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="....  &amp;nbsp;  "&gt;....&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="J'ai aussi des propriétés provenant d'un modèle personnalisé qu'on a créé dans l'entreprise, exemple:  "&gt;I also have properties from a custom template that was created in the company, for example:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="{http://www.MonEntreprise.com/model/content/1.0}MaPropPerso valeur1  &amp;nbsp;  "&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="Http://www.mycompany.com/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;Http://www.mycompany.com/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}MaPropPerso value1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="mais cette propriété personnalisée, lorsqu'on a créé le modèle, on lui a défini plusieurs valeurs possibles."&gt;But this custom property, when we created the model, we defined several possible values. &lt;/SPAN&gt;&lt;SPAN title="elle peut avoir la valeur1 (dans notre exemple, la propriété personnalisée du fichier test.pdf a comme valeur la valeur1 mais aurait très bien pu avoir la valeur2), la valeur2, la valeur3, la valeur4, etc.......  &amp;nbsp;  "&gt;It can have the value1 (in our example, the custom property of the file test.pdf is set to value1 but could have been set to value2), value2, value3, value4, etc .......&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="Ma question est quelle est la ligne de code javascript ou freemarker à écrire dans mon WebScript pour retourner la totalité des valeurs possibles de {http://www.MonEntreprise.com/model/content/1.0}MaPropPerso?  &amp;nbsp;  "&gt;&lt;SPAN&gt;My question is what is the line of javascript or freemarker code to write in my WebScript to return all possible values of {&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.mycompany.com/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.mycompany.com/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}MyPropPerso?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN title="Ma question est quelle est la ligne de code javascript ou freemarker à écrire dans mon WebScript pour retourner la totalité des valeurs possibles de {http://www.MonEntreprise.com/model/content/1.0}MaPropPerso?  &amp;nbsp;  "&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="Je sais qu'il y a possibilité de lister les valeurs d'une propriété qui en contienne plusieurs mais je ne sais pas laquelle.  &amp;nbsp;  "&gt;I know there is a way to list the values of a property that contains several properties but I do not know which one.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="En vous remerciant, cordialement."&gt;Thank you, cordially.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 11:05:44 GMT</pubDate>
    <dc:creator>amoro</dc:creator>
    <dc:date>2017-02-16T11:05:44Z</dc:date>
    <item>
      <title>How to retrieve the possible values of a property from a WebScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-the-possible-values-of-a-property-from-a/m-p/16363#M7215</link>
      <description>Hello everyone!I would need your help please.I have a functional WebScript that shows me all the files of a site with their properties as well as the value of these properties.&amp;nbsp;Example if I have a file test.pdf in my site, my WebScript will display well:{Http://www.alfresco.org/model/system/1.0}name</description>
      <pubDate>Thu, 16 Feb 2017 11:05:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-the-possible-values-of-a-property-from-a/m-p/16363#M7215</guid>
      <dc:creator>amoro</dc:creator>
      <dc:date>2017-02-16T11:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the possible values of a property from a WebScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-the-possible-values-of-a-property-from-a/m-p/16364#M7216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no ready-to-use JavaScript API or FreeMarker directive / API you can use to get to the constraint values that you are obiously referring to. Dictionary information is primarily accessed via Java API and you would have to create your own JavaScript / FreeMarker root scope objects to expose any dictionary data to these layers. This would be the perfect use case for a Java-backed web script where you can use the Java-part of the web script to access the DictionaryService to retrieve the constrain values and pass them along to your JavaScript / FreeMarker code via the web script model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:44:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-the-possible-values-of-a-property-from-a/m-p/16364#M7216</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-02-17T10:44:15Z</dc:date>
    </item>
  </channel>
</rss>

