<?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 Error in TextAreaGenerator if more than 1000 characters in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-in-textareagenerator-if-more-than-1000-characters/m-p/161006#M114960</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;i did a custom "LargeMultilingualTextAreaGenerator" based on MultilingualTextAreaGenerator with more rows and colums in order to allow user to type bigger text. This textarea is used in edit properties dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If user type more than average 1000 characters i have error :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Could not execute JDBC batch update&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using an Oracle database and it seems that string_value in alf_attributes is limited to 1024 characters (attributes.hbm.xml). So i want to find a way to alert contributor that he is limited to 1000 characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is easy way to do that ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can i configure that somewhere (in model ?, in web-client-config ?) ? Can i do easily a javascript ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you any suggestion ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 10:57:00 GMT</pubDate>
    <dc:creator>ribz33</dc:creator>
    <dc:date>2008-02-05T10:57:00Z</dc:date>
    <item>
      <title>Error in TextAreaGenerator if more than 1000 characters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-textareagenerator-if-more-than-1000-characters/m-p/161006#M114960</link>
      <description>Hi,i did a custom "LargeMultilingualTextAreaGenerator" based on MultilingualTextAreaGenerator with more rows and colums in order to allow user to type bigger text. This textarea is used in edit properties dialog.If user type more than average 1000 characters i have error :Could not execute JDBC batc</description>
      <pubDate>Tue, 05 Feb 2008 10:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-textareagenerator-if-more-than-1000-characters/m-p/161006#M114960</guid>
      <dc:creator>ribz33</dc:creator>
      <dc:date>2008-02-05T10:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in TextAreaGenerator if more than 1000 characters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-textareagenerator-if-more-than-1000-characters/m-p/161007#M114961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easiest way would be to use some client side JavaScript to alert or stop the user from entering more than 1000 chars.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a function in /scripts/validation.js called "validateStringLength" you could use this to check the string length as the user types i.e. attach an onkeyup handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is to add a constraint to the property definition in the model, the client side validation should then be done for you, but this isn't the safest&amp;nbsp; upgrade route if it's an Alfresco property!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 13:52:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-textareagenerator-if-more-than-1000-characters/m-p/161007#M114961</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-05T13:52:07Z</dc:date>
    </item>
  </channel>
</rss>

