<?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: Property Constraints in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8229#M2627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The client side regex validation is not working for me. When I attempt to edit data in a data list that is associated with a regex validation, I would expect the "save" button to become disabled in the event the entered data violates the regex constraint. This is not happening. What does happen is that the update will fail as the regex seems to be applied during the update operation on the backend, generating the generic message "Could not update data item".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing, in our deployment we have the "Share" and "Alfresco" web applications running on two separate Tomcat container instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you go into the mechanism by which the client side java script works. I am guessing that at deployment time the model.xml is parsed and the regex extracted and client side java script is generated? Or does the client invoke a server side validation webservice using ajax as I am editing in data in the browser? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does our two container deployment configuration (described above) interfere with the client side validation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 08:12:00 GMT</pubDate>
    <dc:creator>vincent_os</dc:creator>
    <dc:date>2013-08-20T08:12:00Z</dc:date>
    <item>
      <title>Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8223#M2621</link>
      <description>Version: 1.3.0devWhere do I specify a constraint for a property in a property sheet; which config file?Rich</description>
      <pubDate>Wed, 24 May 2006 19:17:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8223#M2621</guid>
      <dc:creator>rich_weiskopf</dc:creator>
      <dc:date>2006-05-24T19:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8224#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Constraints for properties are defined in the model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the core cm: model, you'll need to look at projects/repository/config/model/contentModel.xml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 12:39:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8224#M2622</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-05-25T12:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8225#M2623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; In fact, we can see an example of the definition of a constraint in "contentModel.xml" (in the Alfresco 1.3 Community Preview Released).&amp;nbsp; Is the way we can define such constraints described somewhere?&amp;nbsp; Is it possible to define constrains between different properties.&amp;nbsp; Can we use other languages than REGEX to express constraints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The example included in ContentModel.xml&amp;nbsp; contains in the REGEX expression some escaped chars where it is not really necessary for a valid regex expression :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.*[\"\*\\\&amp;gt;\&amp;lt;\?\/\:\|\xA3\xAC\%\&amp;amp;\+\;]+.*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be written more simply :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.*["*\&amp;gt;&amp;lt;?/&lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://connect.hyland.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;\xA3\xAC%&amp;amp;+;].*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Andre&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:48:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8225#M2623</guid>
      <dc:creator>anweber</dc:creator>
      <dc:date>2006-05-30T07:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8226#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestions for the regular expression, anything to make them look less complex is a good thing&amp;nbsp; &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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is currently no support for defining constraints between properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, there isn't any supporting documentation at the moment for defining custom constraints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a starting point the constraint implementations are registered in projects\repository\source\java\org\alfresco\repo\dictionary\M2ConstraintDefinition.java. It will be a case of copying an existing constraint and modifying for your scenario.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 10:33:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8226#M2624</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-06-05T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8227#M2625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I confirm my understanding here in relation content validation using REGEX.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I define a REGEX constraint as per example here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Content_Model_Constraints" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Content_Model_Constraints&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Does Alfresco take the REGEX constraint defined in the content model and apply it using client side java script? (as per explanation: "… The Alfresco Web Application UI has built-in javascript translation to enforce constraints on the browser clients for the built-in types. See org.alfresco.web.bean.generator.BaseComponentGenerator for more examples.")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 16:02:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8227#M2625</guid>
      <dc:creator>vincent_os</dc:creator>
      <dc:date>2013-08-19T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8228#M2626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes , your understanding is correct.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 06:09:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8228#M2626</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-08-20T06:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8229#M2627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The client side regex validation is not working for me. When I attempt to edit data in a data list that is associated with a regex validation, I would expect the "save" button to become disabled in the event the entered data violates the regex constraint. This is not happening. What does happen is that the update will fail as the regex seems to be applied during the update operation on the backend, generating the generic message "Could not update data item".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing, in our deployment we have the "Share" and "Alfresco" web applications running on two separate Tomcat container instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you go into the mechanism by which the client side java script works. I am guessing that at deployment time the model.xml is parsed and the regex extracted and client side java script is generated? Or does the client invoke a server side validation webservice using ajax as I am editing in data in the browser? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does our two container deployment configuration (described above) interfere with the client side validation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:12:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8229#M2627</guid>
      <dc:creator>vincent_os</dc:creator>
      <dc:date>2013-08-20T08:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8230#M2628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually I missed that validation done on server side You will find following line in the link you have posted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Constraint checks are applied during integrity checks, typically at the end of a transaction within the server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This should give you idea about how validation is handled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:52:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8230#M2628</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-08-20T08:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8231#M2629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, so the regex validation seems to be done both on the client side and server side. Ok makes sense (belt and braces).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For me, the server side validation is working, the client side is not. I would like to understand how the client side validation mechanism is implemented. Is it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A) Java script generated from the regex defined in the model and somehow made available to the browser, and if so how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;B) A client side ajax call to a backend validation webservice &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C) Something else &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8231#M2629</guid>
      <dc:creator>vincent_os</dc:creator>
      <dc:date>2013-08-20T09:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8232#M2630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I have found the following: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Introduction" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Introduction&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;which explains the client side validation. Is it possible to verify that my regex constraint is getting loaded by the browser by inspecting the client side javascript files loaded by the browser using something like Firebug? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 10:25:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8232#M2630</guid>
      <dc:creator>vincent_os</dc:creator>
      <dc:date>2013-08-20T10:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8233#M2631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The link you which you are referring(&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Introduction" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Introduction&lt;/A&gt;&lt;SPAN&gt;) is specific to Alfesco Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In alfresco explorer there is only server side validation for constrain no client side validation done. In Alfresco Share you can see all the underlying files though Spring Surf Bug tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 11:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8233#M2631</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-08-20T11:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Property Constraints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8234#M2632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco Share. What is the name of the javascript file (used in the browser) that will contain the regex constraint I defined in my model. I wish to confirm that my regex constraint is actually being sent to the browser client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:53:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-constraints/m-p/8234#M2632</guid>
      <dc:creator>vincent_os</dc:creator>
      <dc:date>2013-08-20T13:53:13Z</dc:date>
    </item>
  </channel>
</rss>

