08-13-2012 08:08 AM
While coreSession.query() works fine for "SELECT * FROM Document WHERE ... order by ecm:pos " i do not find a way to get this ecm:pos value.
Unfortunately, it is not one of the getters of DocumentModel. The simple trial with "SELECT * , ecm:pos FROM" does not throw an error, but always 0 items (at least against SQLRepositoryTestCase)
Thanks,
[And as this is my first post ever: Many thanks for nuxeo! Great job!]
08-14-2012 12:52 PM
Today the only way to get at the ecm:pos
of a document is to do a query using the queryAndFetch
API and request the value of ecm:pos
:
SELECT ecm:uuid, ecm:pos, ... FROM Document WHERE ...
08-14-2012 12:52 PM
Today the only way to get at the ecm:pos
of a document is to do a query using the queryAndFetch
API and request the value of ecm:pos
:
SELECT ecm:uuid, ecm:pos, ... FROM Document WHERE ...
08-15-2012 10:11 AM
Thanks, works fine.
08-21-2012 11:40 AM
Orderable is a property of the folder contain the documents, not of the documents themselves.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.