<?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: Custom ID generator for Records Management content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205477#M158607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created an aspect with the following javascript code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var props = new Array (1);&lt;BR /&gt;props ["custom:DocumentID"] = 8;&lt;BR /&gt;document.addAspect("custom:DocumentID",props);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This script is executed when a document is created. Now i want to retrieve the number 8 in a javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone at least help me with the code (javascript method) that is used to retrieve the value from an aspect? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jenny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2009 17:54:39 GMT</pubDate>
    <dc:creator>jenn_l</dc:creator>
    <dc:date>2009-03-27T17:54:39Z</dc:date>
    <item>
      <title>Custom ID generator for Records Management content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205472#M158602</link>
      <description>Hello everyone. I am new to Alfresco development, so go easy on me. I searched the board but could not find an answer to my question.How can one write his own ID generator for content that is added into the Records Management?Since RM is also represented as a space in Alfresco, is it a matter of wri</description>
      <pubDate>Tue, 17 Feb 2009 07:11:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205472#M158602</guid>
      <dc:creator>uzbekjon</dc:creator>
      <dc:date>2009-02-17T07:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ID generator for Records Management content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205473#M158603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any help with this would be apreciated…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks yet again…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 06:38:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205473#M158603</guid>
      <dc:creator>uzbekjon</dc:creator>
      <dc:date>2009-02-19T06:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ID generator for Records Management content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205474#M158604</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;Are you talking about just creating a Unique ID for documents? We did this by creating a policy component that pulls an ID number from a table we created within the Alfresco database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 12:22:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205474#M158604</guid>
      <dc:creator>jarrett</dc:creator>
      <dc:date>2009-03-12T12:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ID generator for Records Management content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205475#M158605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Are you talking about just creating a Unique ID for documents? We did this by creating a policy component that pulls an ID number from a table we created within the Alfresco database.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Hello Jarrett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a way to generate an ID in different format. Instead of "0001" something like "GEN-0001". Basically, not just plain ID, but in different format with a prefix depending on other aspects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 05:36:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205475#M158605</guid>
      <dc:creator>uzbekjon</dc:creator>
      <dc:date>2009-03-17T05:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ID generator for Records Management content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205476#M158606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a new aspect DocumentID in the customModel.xml that must be filled automatically with a Javascript which generate id's. This Javascipt will be executed as a Business rule when documents are created/uploaded. Can anyone help me to define this Javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jenny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 16:09:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205476#M158606</guid>
      <dc:creator>jenn_l</dc:creator>
      <dc:date>2009-03-24T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ID generator for Records Management content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205477#M158607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created an aspect with the following javascript code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var props = new Array (1);&lt;BR /&gt;props ["custom:DocumentID"] = 8;&lt;BR /&gt;document.addAspect("custom:DocumentID",props);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This script is executed when a document is created. Now i want to retrieve the number 8 in a javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone at least help me with the code (javascript method) that is used to retrieve the value from an aspect? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jenny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 17:54:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205477#M158607</guid>
      <dc:creator>jenn_l</dc:creator>
      <dc:date>2009-03-27T17:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ID generator for Records Management content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205478#M158608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After installing the Records Management amp, you can&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assign the &lt;/SPAN&gt;&lt;STRONG&gt;rma:Record&lt;/STRONG&gt;&lt;SPAN&gt; aspect to a space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit the space's details and under &lt;/SPAN&gt;&lt;STRONG&gt;Record Category Identifier&lt;/STRONG&gt;&lt;SPAN&gt; type the prefix you want your files to have (e.g GEN).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So next time you upload something to this folder it will be given the name of the prefix together with a serial number (e.g GEN-0002)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope that helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 10:25:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-id-generator-for-records-management-content/m-p/205478#M158608</guid>
      <dc:creator>trelofysikos</dc:creator>
      <dc:date>2009-04-22T10:25:22Z</dc:date>
    </item>
  </channel>
</rss>

