<?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: How to select a document whit a specific child? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82430#M25332</link>
    <description>&lt;P&gt;&lt;FONT&gt;I'm afraid three is no such query .&lt;BR /&gt;you can try to add a custom property to your document and use this custom property to save the number of associations .&lt;BR /&gt;When you update the association ,you also update this property.&lt;BR /&gt;For documents withou association&amp;nbsp; ,the property value is 0 or null.&lt;BR /&gt;As for existing data ,you need to write code to update it one bye one.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2020 04:06:32 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2020-09-03T04:06:32Z</dc:date>
    <item>
      <title>How to select a document whit a specific child?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82427#M25329</link>
      <description>&lt;P&gt;I have a set of documents where some of them have a child (associtaion type "ecmccontent:content_origin") and some of them don't have such child association. I need a result set of documents without such association, how to do that (in any query language)? Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 16:23:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82427#M25329</guid>
      <dc:creator>iceja</dc:creator>
      <dc:date>2020-07-18T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to select a document whit a specific child?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82428#M25330</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To my mind your case is caused by a conception/modelization problem. You have to find documents which don't have a particular property instead searching documents having a particular property.&lt;/P&gt;&lt;P&gt;In other words, "searching documents you want" will be more simple than "searching ones you don't want and next search for the others".&lt;/P&gt;&lt;P&gt;Maybe what I say is wrong but I think that whatever your algorithm, you will have to loop into your results to check if your documents have this association or not.&lt;/P&gt;&lt;P&gt;In order to code that, I think Java API will be more helpful than Javascript because Java API offers more functions : &lt;A href="http://dev.alfresco.com/resource/AlfrescoOne/5.2/PublicAPI/overview-summary.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/AlfrescoOne/5.2/PublicAPI/overview-summary.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm not an expert in development but maybe&amp;nbsp; &lt;STRONG&gt;DictionaryService&lt;/STRONG&gt; class could help you :&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/resource/AlfrescoOne/5.2/PublicAPI/org/alfresco/service/cmr/dictionary/DictionaryService.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/AlfrescoOne/5.2/PublicAPI/org/alfresco/service/cmr/dictionary/DictionaryService.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 13:50:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82428#M25330</guid>
      <dc:creator>mavidot</dc:creator>
      <dc:date>2020-07-24T13:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to select a document whit a specific child?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82429#M25331</link>
      <description>&lt;P&gt;The subject was to select a document with the specific association via single query and there is no method to do it in the single query.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 15:02:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82429#M25331</guid>
      <dc:creator>iceja</dc:creator>
      <dc:date>2020-09-02T15:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to select a document whit a specific child?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82430#M25332</link>
      <description>&lt;P&gt;&lt;FONT&gt;I'm afraid three is no such query .&lt;BR /&gt;you can try to add a custom property to your document and use this custom property to save the number of associations .&lt;BR /&gt;When you update the association ,you also update this property.&lt;BR /&gt;For documents withou association&amp;nbsp; ,the property value is 0 or null.&lt;BR /&gt;As for existing data ,you need to write code to update it one bye one.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 04:06:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-select-a-document-whit-a-specific-child/m-p/82430#M25332</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-09-03T04:06:32Z</dc:date>
    </item>
  </channel>
</rss>

