<?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: List custom properties of a custom type [SOLVED] in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/list-custom-properties-of-a-custom-type-solved/m-p/271999#M225129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I found it, at least with a Java Backend&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For getting the list of posible properties of a typeName, you should do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DictionaryService dd = serviceRegistry.getDictionaryService();&lt;BR /&gt;QName qName=QName.createQName(typeName);&lt;BR /&gt;TypeDefinition def=&amp;nbsp; dd.getType(qName);&lt;BR /&gt;Map&amp;lt;QName, PropertyDefinition&amp;gt; list=def.getProperties();&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 08:27:05 GMT</pubDate>
    <dc:creator>palba</dc:creator>
    <dc:date>2010-12-22T08:27:05Z</dc:date>
    <item>
      <title>List custom properties of a custom type [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-custom-properties-of-a-custom-type-solved/m-p/271997#M225127</link>
      <description>Hi.Is there any way, using the javascript API, of getting the custom properties of a custom type?Or, at least, is there any way to list all the custom properties of a node, although the property isn't set? Usingnode.properties‍I get all the properties of a node, but only the properties with a value.</description>
      <pubDate>Tue, 21 Dec 2010 16:38:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-custom-properties-of-a-custom-type-solved/m-p/271997#M225127</guid>
      <dc:creator>palba</dc:creator>
      <dc:date>2010-12-21T16:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: List custom properties of a custom type [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-custom-properties-of-a-custom-type-solved/m-p/271998#M225128</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;SPAN&gt;Below are the options of showing the property value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.node.properties["{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}modified" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}modified&lt;/A&gt;&lt;SPAN&gt;"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.node.properties["cm:modified"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. node.properties["modified"] — &amp;gt; applicable only for the namespace &lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;4. node.properties.modified — &amp;gt; applicable only for the namespace &lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your custom fields go for first or second option whichever you fell comfortable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Patil&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cignex Technologies&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bangalore&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 04:13:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-custom-properties-of-a-custom-type-solved/m-p/271998#M225128</guid>
      <dc:creator>patil</dc:creator>
      <dc:date>2010-12-22T04:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: List custom properties of a custom type [SOLVED]</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/list-custom-properties-of-a-custom-type-solved/m-p/271999#M225129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I found it, at least with a Java Backend&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For getting the list of posible properties of a typeName, you should do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DictionaryService dd = serviceRegistry.getDictionaryService();&lt;BR /&gt;QName qName=QName.createQName(typeName);&lt;BR /&gt;TypeDefinition def=&amp;nbsp; dd.getType(qName);&lt;BR /&gt;Map&amp;lt;QName, PropertyDefinition&amp;gt; list=def.getProperties();&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 08:27:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/list-custom-properties-of-a-custom-type-solved/m-p/271999#M225129</guid>
      <dc:creator>palba</dc:creator>
      <dc:date>2010-12-22T08:27:05Z</dc:date>
    </item>
  </channel>
</rss>

