<?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: Returning custom properties in the 'getChildren' Web script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179515#M132645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe this is now done in HEAD, as Dave Caruana has been working on it recently. See &lt;/SPAN&gt;&lt;A href="http://twitter.com/dcaruana/statuses/1317716516" rel="nofollow noopener noreferrer"&gt;http://twitter.com/dcaruana/statuses/1317716516&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://twitter.com/dcaruana/statuses/1371141876" rel="nofollow noopener noreferrer"&gt;http://twitter.com/dcaruana/statuses/1371141876&lt;/A&gt;&lt;SPAN&gt; among others.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2009 07:41:54 GMT</pubDate>
    <dc:creator>t_broyer</dc:creator>
    <dc:date>2009-04-09T07:41:54Z</dc:date>
    <item>
      <title>Returning custom properties in the 'getChildren' Web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179510#M132640</link>
      <description>The "getChildren" Web script –GET /alfresco/service/api/path/{store_type}/{store_id}/{id}/children?types={types}&amp;amp;filter={filter?}&amp;amp;skipCount={skipCount?}&amp;amp;maxItems={maxItems?}‍– specifies a "filter" argument.&amp;nbsp; The definition is this&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring filter: Filter specifying which properties to retu</description>
      <pubDate>Wed, 10 Dec 2008 17:59:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179510#M132640</guid>
      <dc:creator>deane</dc:creator>
      <dc:date>2008-12-10T17:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Returning custom properties in the 'getChildren' Web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179511#M132641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The "getChildren" Web script –&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;GET /alfresco/service/api/path/{store_type}/{store_id}/{id}/children?types={types}&amp;amp;filter={filter?}&amp;amp;skipCount={skipCount?}&amp;amp;maxItems={maxItems?}&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;– specifies a "filter" argument.&amp;nbsp; The definition is this:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;String filter: Filter specifying which properties to return.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;What is the format of this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;A comma-separated or space-separated list (the current implementation just checks if a given property name exists in the filter, so fooObjectIdbar would give you the ObjectId property)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a custom property of "custom:Type".&amp;nbsp; What would I put in the "filter" argument to return this?&amp;nbsp; I've tried about everything.&lt;BR /&gt;&lt;BR /&gt;I've specified "ObjectId," and it did limit the returned properties to the "cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId" property.&amp;nbsp; But am I limited to just the "cmis" namespace?&amp;nbsp; Can I get my custom property out?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You're limited to properties that would be listed when you omit the filter (or use filter=*), that is, a fixed set of CMIS properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 11:10:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179511#M132641</guid>
      <dc:creator>t_broyer</dc:creator>
      <dc:date>2008-12-11T11:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Returning custom properties in the 'getChildren' Web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179512#M132642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You're limited to properties that would be listed when you omit the filter (or use filter=*), that is, a fixed set of CMIS properties.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is there any way to get my custom property back from this Web script?&amp;nbsp; Or do I have to write my own Web script?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 13:11:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179512#M132642</guid>
      <dc:creator>deane</dc:creator>
      <dc:date>2008-12-11T13:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Returning custom properties in the 'getChildren' Web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179513#M132643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So, is there any way to get my custom property back from this Web script?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No (from what I've read in the webscript sources)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that this seems to be a limitation of the Alfresco implementation of CMIS, not in CMIS itself (I didn't read the spec closely, though), so you're free to submit patches &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(hint: the file you'd need to patch is templates/webscripts/org/alfresco/cmis/atomentry.lib.atom.ftl)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: actually, unlike I said in my previous message, the filter must be a comma-separated list, per &lt;/SPAN&gt;&lt;A href="https://community.emc.com/servlet/JiveServlet/previewBody/1582-102-3-2753/CMIS%20Part%20I%20--%20Domain%20Model%20v0.5.pdf" rel="nofollow noopener noreferrer"&gt;CMIS spec&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;A property filter can be used to specify which properties to be returned in a request. A valid property filter will follow the following grammar:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;[*] | &amp;lt;propertyname&amp;gt;[,[ ]*&amp;lt;propertyname&amp;gt;]*&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;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;or in other words:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;A property filter is a string that contains either ‘*’ (to return all properties) or a comma-separated list of property names (to return selected properties). An arbitrary number of spaces are allowed before or after each comma.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco's implementation never throws FilterNotValidException though in case you pass an invalid (e.g. space-separated list) filter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 13:54:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179513#M132643</guid>
      <dc:creator>t_broyer</dc:creator>
      <dc:date>2008-12-11T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Returning custom properties in the 'getChildren' Web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179514#M132644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to this forum and to this product, but I have been doing ECM for quite a while with IBM's products.&amp;nbsp; I was wanting to port a client I wrote to Alfresco to hit a new market, but I ran into a small problem.&amp;nbsp; I separate the different object types into different tabs to display their attributes completely.&amp;nbsp; I am using dojo, and I wanted to use or modify the AtomReadStore to retrieve the contents of a folder, but I don't get enough info back from the RESTful APIs to sort the documents into their appropriate types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For my example, let me use the "my:sop" that we are all familiar with.&amp;nbsp; There is at least one field that I want to show, it is called authorisedBy.&amp;nbsp; When I get either the properties of that 1 document, or if I get the list of children that contain this 1 document, it doesn't show me the my_authorized field.&amp;nbsp; This is because of what is explained before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My suggestion is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Instead of comparing a known list of fields to the ones specified in the filter, make the filter specify which fields are to be used.&amp;nbsp; Change the FTL to iterate through the list of fields, and if the filter is empty or if the filter is *, then put in a default list of fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Generate a default list of fields using a helper function that can be incorporated into the .js portion of the Web Script.&amp;nbsp; It could be called just like "cmisproperty", call it "cmisallproperties".&amp;nbsp; That helper function would then list all non-stream, non-internal/system properties.&amp;nbsp; This list could then be split or iterated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; If you reverse the properties from a known list&amp;nbsp; to an unknown list of fields, then you would have to be able to discover property types.&amp;nbsp; Again, you would need one of those helper functions/classes like cmisproperty to get the type.&amp;nbsp; It could be called cmispropertytype and could take 1 parameter, the name of a field, and it would return the values of "INTEGER", "STRING" and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you did all of this, then you would end up with a way to always describe a document and ALL of its fields.&amp;nbsp; If you don't want all of the fields, then change "filter" to whatever you need.&amp;nbsp; It would be better if the call would be too verbose by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another handy idea would be to add filtering of not only "types", but model object types as well.&amp;nbsp; That way you could filter down to "my:sop" documents only.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bill&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 22:26:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179514#M132644</guid>
      <dc:creator>bill_curtis3</dc:creator>
      <dc:date>2009-04-08T22:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Returning custom properties in the 'getChildren' Web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179515#M132645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe this is now done in HEAD, as Dave Caruana has been working on it recently. See &lt;/SPAN&gt;&lt;A href="http://twitter.com/dcaruana/statuses/1317716516" rel="nofollow noopener noreferrer"&gt;http://twitter.com/dcaruana/statuses/1317716516&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://twitter.com/dcaruana/statuses/1371141876" rel="nofollow noopener noreferrer"&gt;http://twitter.com/dcaruana/statuses/1371141876&lt;/A&gt;&lt;SPAN&gt; among others.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:41:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179515#M132645</guid>
      <dc:creator>t_broyer</dc:creator>
      <dc:date>2009-04-09T07:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Returning custom properties in the 'getChildren' Web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179516#M132646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info, I will start watching his other info on Twitter.&amp;nbsp; I will also get the latest head.&amp;nbsp; Again, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2009 00:04:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-custom-properties-in-the-getchildren-web-script/m-p/179516#M132646</guid>
      <dc:creator>bill_curtis3</dc:creator>
      <dc:date>2009-04-11T00:04:28Z</dc:date>
    </item>
  </channel>
</rss>

