07-20-2015 09:45 AM
I am using the Unity API Document Query to create a DocPop URL comprised of multiple document IDs separated by comma. More precisely, the DocPop URL reflects a subset of items returned by the document query. After executing the Document Query, each document in the resulting Document List goes through a vetting process to determine whether or not it should be included in the DocPop URL. We have no problem determining which documents to include in the DocPopURL.
However, we have a requirement to display the documents in a particular order: They must be sorted by DocumentType.Name(ASC) then by DocumentDate(DESC) then by ID(DESC). Therein lies the rub. We have no problem with the sort using a List object and an IComparable interface. The problem we experience is that after creating the URL with document IDs in the desired order (as shown below), DocPop presents the list of documents in a different order - DocumentDate(ASC). I was unable to find any information in the SDK or MRG or Community to force DocPop to display documents in the order specified.
DocPopURL: http://obwebp-prod4/AppNet/Docpop/docpop.aspx?clienttype=html&docid=29840457,29806889,27643735,27676...
We could display a separate interface that mimics a DocPop retrieval window, but would only consider that as a last resort. Any help from the Community will be greatly appreciated.
Thank you!
07-20-2015 11:32 AM
Hi Joseph,
Unfortunately, you're right. There is no functionality in a DocPop link to pass sort columns. So in order to display a default sort through DocPop, you would be limited to a link that executes a custom query. Within a custom query, you can define both the display and sort columns including sort order.
If you populated the document handle into a keyword on each document, then you could construct a custom query based on that keyword and pass the document ids in a link like this one (In this example, I'm imagining that the custom query ID is 101 and the keyword type is 102):
Then, you can configure the sort columns for your custom query to sort in the manner you have indicated, and the sorted results should be displayed properly.
Kind regards,
-Scott
07-20-2015 11:32 AM
Hi Joseph,
Unfortunately, you're right. There is no functionality in a DocPop link to pass sort columns. So in order to display a default sort through DocPop, you would be limited to a link that executes a custom query. Within a custom query, you can define both the display and sort columns including sort order.
If you populated the document handle into a keyword on each document, then you could construct a custom query based on that keyword and pass the document ids in a link like this one (In this example, I'm imagining that the custom query ID is 101 and the keyword type is 102):
Then, you can configure the sort columns for your custom query to sort in the manner you have indicated, and the sorted results should be displayed properly.
Kind regards,
-Scott
07-22-2015 01:36 PM
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.