Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.
For more information and upcoming events around #dominoforever, please visit our Destination Domino Page
From Ulf Grindstadt
If I recall right, techtarget solution is limited to dc's of same database. As it is just one line of code to fix this (Set db = s.currentdatabase versus set db = dc.'WhatEverItTakesHere' ) this should be corrected when implementing.
Attachments Open full size
In plan for v12
Attachments Open full size
Use case: User clicks a "report" button and enters a date range and selects customer number, part number or location. A db.search returns the matching documents in a collection. The desired field values are then written to Excel for display. It looks clunky to use Excel's sort after the rows are written.
The SearchDomino solution works fine. Nevertheless, it would be nice if it was built in.
Attachments Open full size
Basic Document Collection Sort function: see https://searchdomino.techtarget.com/tip/LotusScript-sorts-a-Lotus-Notes-document-collection
Attachments Open full size
Please look at maintainOrder in 10.0.1 on (Notes)ViewEntryCollection intersect and subtract functions. If you intersect your NotesDocumentCollection with a sorted NotesViewEntryCollection, you get sorted results.
We'll do more, but I wanted to make sure people knew about it. It's available in 10.0.1.
https://www.ibm.com/support/knowledgecenter/SSVRGU_10.0.1/basic/H_INTERSECT_METHOD_VEC_JAVA.html
https://www.ibm.com/support/knowledgecenter/SSVRGU_10.0.1/basic/H_SUBTRACT_METHOD_VEC_JAVA.html
Attachments Open full size
I have been developing under Lotus since 2001 fulltime, and never needed to sort collections.
The need to sort collections usually speaks of improperly projected applications.
Attachments Open full size
Domino 10.0.1 provides a solution with ViewEntryCollection.intersect(DocumentCollection dc, boolean maintainOrder);
That way, you can use a sorted view (or sort it in code with View.resortView(String column)), get a ViewEntryCollection via View.getAllEntries() and reduce it to only contain entries of your document collection.
Attachments Open full size
Please add this. It's somewhat embarrassing that we don't have a sort method. I will add to Ulf's suggestion, by including another argument:
NotesDocumentCollection.Sort(FieldNameArray, Ascending or Descending)
Attachments Open full size
Testing DQL via node.js, I also realized that we need sorting for DQL
Attachments Open full size
+1 for "add sorting to DQL"
Attachments Open full size
Or add sorting to DQL.
Attachments Open full size