<?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: Simple CMIS query not working in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278978#M232108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, in node browser works fine, with node id of course.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About the dynamic collection were the problem pertain to, I already made sure both folders and documents exists, as soon as I add another in_folder it stops retrieving documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you mind (in your spare time) to try the same kind of query for me, in your web quick start of course. Just to be sure there's no bug around, because it seems quite a strange behavior. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 4.2.f community.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2014 15:26:00 GMT</pubDate>
    <dc:creator>leonardo_celati</dc:creator>
    <dc:date>2014-06-25T15:26:00Z</dc:date>
    <item>
      <title>Simple CMIS query not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278974#M232104</link>
      <description>I have a simple CMIS query which I am executing from within a collection folder. The purpose is to retrieve two specific documents placed in two different folders. SELECT d.* FROM cmis:document d JOIN ws:webasset w ON w.cmis&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId = d.cmis&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId WHERE &amp;nbsp;&amp;nbsp; (d.cmis:name = 'name1.html' AND in_fold</description>
      <pubDate>Sat, 21 Jun 2014 14:36:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278974#M232104</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-06-21T14:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple CMIS query not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278975#M232105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Function IN_FOLDER's parameter is folder id instead of folder path.and you'd better add selector alias in IN_FOLDER function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following is an example :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT D.*, O.* FROM cmis:document AS D JOIN cm:ownable AS O ON D.cmis:objectId = O.cmis:objectId&lt;BR /&gt;WHERE &lt;BR /&gt;&amp;nbsp;&amp;nbsp; (D.cmis:name = 'name1.html' AND IN_FOLDER(D,'workspace://SpacesStore/e1e67158-b8ce-4d6b-aa46-0cc05cee9366'))&lt;BR /&gt;OR&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (D.cmis:name = 'name2.html' AND IN_FOLDER(D,'workspace://SpacesStore/e1e67158-b8ce-4d6b-aa46-0cc05cee9366'))&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;/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, 25 Jun 2014 03:01:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278975#M232105</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-25T03:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple CMIS query not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278976#M232106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, the missing qualifier was a typo error, the original query has it correctly specified. However, at this point it is not clear to me what ${section:/path} does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the default dynamic collection created in the alfresco share wcmqs, the ${section:} is used everywhere. This is one of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT d.* &lt;BR /&gt;FROM cmis:document AS d JOIN ws:webasset AS wa ON d.cmis:objectId = wa.cmis:objectId &lt;BR /&gt;WHERE d.cmis:objectTypeId='D:ws:article' AND in_tree(d, '${section:.}') &lt;BR /&gt;ORDER BY wa.ws:publishedTime DESC&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it works fine, and I am using it correctly everywhere in all my dinamic collections. The point is that it seems to stop working when I add another ${section:}.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 09:27:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278976#M232106</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-06-25T09:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Simple CMIS query not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278977#M232107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In CMIS&amp;nbsp; query language,Function IN_FOLDER's parameter should be folder id as I posted .But when&amp;nbsp; define dynamic Asset collections&amp;nbsp; in wcm ,we can contain a special placeholder&amp;nbsp; , the placeholder is automatically replaced by a section identifier(folder id) prior to executing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you want to execute this type of query directly&amp;nbsp; in node browser ,you should write a query as I posted ,Replace the placeholder(${section:.}) in your query to it's node id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Node: you can get the section folder it using node browser (just navigate to the section folder and check it's node reference).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As your below query did not return anything,you should check whether subsection /root/folder1, /root/folder1 exist or not in your website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT d.* FROM cmis:document d JOIN ws:webasset w ON w.cmis:objectId = d.cmis:objectId &lt;BR /&gt;WHERE &lt;BR /&gt;&amp;nbsp;&amp;nbsp; (d.cmis:name = 'name1' OR d.cmis:name = 'name2.html') &lt;BR /&gt;AND &lt;BR /&gt;&amp;nbsp;&amp;nbsp; (in_folder('${section:/root/folder1}') OR in_folder('${section:/root/folder2}'))&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;/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, 25 Jun 2014 15:05:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278977#M232107</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-25T15:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simple CMIS query not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278978#M232108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, in node browser works fine, with node id of course.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About the dynamic collection were the problem pertain to, I already made sure both folders and documents exists, as soon as I add another in_folder it stops retrieving documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you mind (in your spare time) to try the same kind of query for me, in your web quick start of course. Just to be sure there's no bug around, because it seems quite a strange behavior. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 4.2.f community.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 15:26:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278978#M232108</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2014-06-25T15:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple CMIS query not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278979#M232109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not tested it yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I have spare time I will test it and trace why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now ,just a suggestion,you can try with IN_TREE function as instead as following&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT d.* FROM cmis:document d JOIN ws:webasset w ON w.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 = d.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 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; (d.cmis:name = 'name1' OR d.cmis:name = 'name2.html') &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; in_tree('${section:/root/}') &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 15:45:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-cmis-query-not-working/m-p/278979#M232109</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-25T15:45:53Z</dc:date>
    </item>
  </channel>
</rss>

