<?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: NQXL workspace query in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325266#M12267</link>
    <description>&lt;P&gt;Thank you both for your prompt replies. Actually I am looking the exact contents and not a parent or child/descendant. So NXP-19605 seems to offer exactly what I want/need(ed) except that I was looking at the item itself and not the parent. But as it works it works regardless of the name&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2016 14:12:10 GMT</pubDate>
    <dc:creator>olaf_</dc:creator>
    <dc:date>2016-05-02T14:12:10Z</dc:date>
    <item>
      <title>NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325260#M12261</link>
      <description>&lt;P&gt;I am programming using the  REST API and NXQL. I ran into some problems and found it easier to test queries first using Nuxeo Shell : &lt;A href="https://doc.nuxeo.com/display/NXDOC/Nuxeo+Shell+Batch+Mode"&gt;Nuxeo Shell in batch mode&lt;/A&gt;
My goal is to have a listing of items found in a workspace or folder. I tried the following queries:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;CODE&gt;query "SELECT * FROM Document WHERE ecm:path = '/default-domain/workspaces/Trial workspace'"&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;query "SELECT * FROM Document WHERE ecm:path = '/default-domain/workspaces/Trial workspace/'"&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;query "SELECT * FROM Document WHERE ecm:path = '/default-domain/workspaces/Trial workspace/*'"&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;query "SELECT * FROM Document WHERE ecm:path STARTSWITH '/default-domain/workspaces/Trial workspace'"&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;These result in either no listing, a single item being the name of the path itself or the entire contents of the workspace including all items in subfolders, workspaces, etc which is way too much.&lt;/P&gt;
&lt;P&gt;I also experimented a bit based on &lt;A href="https://doc.nuxeo.com/display/NXDOC/How+to+Override+Existing+Document+Types"&gt;Existing Document Types (Dublin Core)&lt;/A&gt; and of course &lt;A href="https://doc.nuxeo.com/display/NXDOC/NXQL"&gt;NXQL specification&lt;/A&gt;, but never got the result I wanted.&lt;/P&gt;
&lt;P&gt;Basically I would like to have the same thing as you would have when using the Nuxeo GUI: a view of items in a folder, workspace, collection or section and not something residing in parent or child branches/items.&lt;/P&gt;
&lt;P&gt;Q: How do I get what I want please?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 13:27:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325260#M12261</guid>
      <dc:creator>olaf_</dc:creator>
      <dc:date>2016-05-02T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325261#M12262</link>
      <description>&lt;P&gt;It might be easier to use either the children adapter : "/path/{docPath}/@children"  or the Document.GetChild operation&lt;/P&gt;
&lt;P&gt;Using NXQL, you should take a look at "ecm:parentId"&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 13:44:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325261#M12262</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-05-02T13:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325262#M12263</link>
      <description>&lt;P&gt;In NXQL also look at the `ecm&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 13:46:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325262#M12263</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2016-05-02T13:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325263#M12264</link>
      <description>&lt;P&gt;I think Olaf is looking for children not descendants (he mentionned the ecm&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 13:53:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325263#M12264</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-05-02T13:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325264#M12265</link>
      <description>&lt;P&gt;Indeed, sorry I misread. `ecm&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 13:57:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325264#M12265</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2016-05-02T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325265#M12266</link>
      <description>&lt;P&gt;https&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 14:01:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325265#M12266</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2016-05-02T14:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325266#M12267</link>
      <description>&lt;P&gt;Thank you both for your prompt replies. Actually I am looking the exact contents and not a parent or child/descendant. So NXP-19605 seems to offer exactly what I want/need(ed) except that I was looking at the item itself and not the parent. But as it works it works regardless of the name&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 14:12:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325266#M12267</guid>
      <dc:creator>olaf_</dc:creator>
      <dc:date>2016-05-02T14:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325267#M12268</link>
      <description>&lt;P&gt;In Nuxeo shell I get a huge resultset when executing the query:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;query "SELECT * FROM Document WHERE ecm:path STARTSWITH '/default-domain/workspaces/Trial workspace'"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However when I execute the same query using the PHP lib/client I get an exception 0 : File not found. And as a side effect an empty resultset. &lt;STRONG&gt;Is this a bug?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;My goals was to get the first item of the resultset and then get the parentID so I can follow up the suggestions of Florent Guillaume in this thread, I assume this is the way to go as there is no LIMIT function or a way to query a workspace's properties directly?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 16:01:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325267#M12268</guid>
      <dc:creator>olaf_</dc:creator>
      <dc:date>2016-05-12T16:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: NQXL workspace query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325268#M12269</link>
      <description>&lt;P&gt;Recently I noted something which does not sound logical to me:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;query "SELECT * FROM Workspace WHERE ecm:path = '/default-domain/workspaces/Trial workspace'"&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;produces an exception and an empty resultset. Whereas:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt; query "SELECT * FROM Section WHERE ecm:path = '/default-domain/sections/just another section&lt;/CODE&gt;'"&lt;/P&gt;
&lt;P&gt;produces a single item resultset.
In other words: properties of a section can be easily queried and therefor the ID can be retrieved. The ID can then be used to get the contents of the section.
&lt;EM&gt;But the same can not be said for a workspace.&lt;/EM&gt; &lt;STRONG&gt;Is this intentional?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 15:51:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nqxl-workspace-query/m-p/325268#M12269</guid>
      <dc:creator>olaf_</dc:creator>
      <dc:date>2016-05-23T15:51:06Z</dc:date>
    </item>
  </channel>
</rss>

