06-29-2015 02:17 AM
07-01-2015 06:35 AM
Here is a way to do it using the API
DocumentQuery docQuery = onbaseApp.getCore().CreateDocumentQuery();
docQuery.AddDocumentType(onbaseApp.getCore().getDocumentTypes().Find("SearchDocType"));
For specifying a MAX Count, there are 2 ways.
DocumentList docList = docQuery.Execute(docQuery.ExecuteCount())
or
DocumentList docList = docQuery.Execute(Integer.MAX_VALUE)
Thanks,
Harish
07-01-2015 06:35 AM
Here is a way to do it using the API
DocumentQuery docQuery = onbaseApp.getCore().CreateDocumentQuery();
docQuery.AddDocumentType(onbaseApp.getCore().getDocumentTypes().Find("SearchDocType"));
For specifying a MAX Count, there are 2 ways.
DocumentList docList = docQuery.Execute(docQuery.ExecuteCount())
or
DocumentList docList = docQuery.Execute(Integer.MAX_VALUE)
Thanks,
Harish
07-07-2015 08:14 AM
07-07-2015 08:15 AM
Querying the database directly would be an unsupported solution and may violate the Database Agreement made with Hyland. Using a DocumentQuery is the advised solution.
Edit: A colleague pointed out to me that this is not necessarily the case, and that sometimes querying the database is supported and acceptable. The rule of thumb appears to be that querying the database may breach the Database Agreement if it is being done to circumvent a license like Query license. The Database Technical Community forum will have more detailed information about when a database query is supported versus when it is not. In this instance using a DocumentQuery still seems to be the easier solution.
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.