<?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 Dynamic LIST Constraint in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249842#M202972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have heard it is possible to configure a LIST constraint within a model file to reference another file to allow for a dynamic list without having to edit the model file itself and restart the Alfresco server. I cannot find the syntax to do this. Is it possible and if not are there other ways to allow for a dynamic LIST constraint within a custom model? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2012 15:21:18 GMT</pubDate>
    <dc:creator>mvidev</dc:creator>
    <dc:date>2012-08-21T15:21:18Z</dc:date>
    <item>
      <title>Dynamic LIST Constraint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249842#M202972</link>
      <description>I have heard it is possible to configure a LIST constraint within a model file to reference another file to allow for a dynamic list without having to edit the model file itself and restart the Alfresco server. I cannot find the syntax to do this. Is it possible and if not are there other ways to al</description>
      <pubDate>Tue, 21 Aug 2012 15:21:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249842#M202972</guid>
      <dc:creator>mvidev</dc:creator>
      <dc:date>2012-08-21T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic LIST Constraint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249843#M202973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jean Barmash's original blog post was always the best example we had of this, but the blog post has been archived.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone copied it into a forum thread here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=19&amp;amp;t=43663" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=19&amp;amp;t=43663&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll see if we can find that blog post and move it to the wiki.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 15:55:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249843#M202973</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-08-21T15:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic LIST Constraint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249844#M202974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Note that dynamic &lt;/SPAN&gt;&lt;STRONG&gt;CONSTRAINT&lt;/STRONG&gt;&lt;SPAN&gt; list is not such a good idea since removing item from the constraint list which is used will cause integrity violation error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A better approach in my oppionion is to define a webscript which reads from some source and returns a JSON (maybe XML) list. Then create (if using Share) form control which will connect to that webscript and render a drop down list from that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This isn't a secure implementation since anyone who knows how to use firebug could add their own items. but you can solve this by defining a onUpdate policy for your content type and checking if the property is in the list that webscript returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not a perfect solution, but if you intend to remove items from constraint list and don't want to cause integrity violation errors you could do something like this instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 07:09:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249844#M202974</guid>
      <dc:creator>matjazmuhic</dc:creator>
      <dc:date>2012-08-24T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic LIST Constraint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249845#M202975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you both for your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our use case does not call for removing entries. We will programmatical import a large amount of data that falls into several dozen different catagories. The software will automatically determine the category of each entry and we would like to automatically put them into the data model list constraint. After import, the users could use the drop-down to restrict their Alfresco searches based on category. Also other external programs could access the data model for a list of the supported categories. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The categories will vary from customer to customer, so being able to automatically build and archive the category list greatly reduces the user's complexity. Also, the ability to store the category list in Alfresco as part of the data model keeps it close to the archived documents and available to any external source via CMIS regardless of the client used to view the data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 15:29:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249845#M202975</guid>
      <dc:creator>mvidev</dc:creator>
      <dc:date>2012-08-27T15:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic LIST Constraint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249846#M202976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok. I just had to say that to cover the case… &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 05:59:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249846#M202976</guid>
      <dc:creator>matjazmuhic</dc:creator>
      <dc:date>2012-08-28T05:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic LIST Constraint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249847#M202977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check out the following link. &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=4&amp;amp;t=11687&amp;amp;p=140018#p140018" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=4&amp;amp;t=11687&amp;amp;p=140018#p140018&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 15:22:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249847#M202977</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-11-22T15:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic LIST Constraint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249848#M202978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Note that dynamic &lt;STRONG&gt;CONSTRAINT&lt;/STRONG&gt; list is not such a good idea since removing item from the constraint list which is used will cause integrity violation error.&lt;BR /&gt;&lt;BR /&gt;A better approach in my oppionion is to define a webscript which reads from some source and returns a JSON (maybe XML) list. Then create (if using Share) form control which will connect to that webscript and render a drop down list from that.&lt;BR /&gt;&lt;BR /&gt;This isn't a secure implementation since anyone who knows how to use firebug could add their own items. but you can solve this by defining a onUpdate policy for your content type and checking if the property is in the list that webscript returns.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It's not a perfect solution, but if you intend to remove items from constraint list and don't want to cause integrity violation errors you could do something like this instead.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you was to use the dynamic constraint. what if you never deleted a value but just added? also what if these values got re-arranged for example alphabetically the order of the values would change so does this affect indexing or integrity violations or anything else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 18:03:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-list-constraint/m-p/249848#M202978</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-11-22T18:03:09Z</dc:date>
    </item>
  </channel>
</rss>

