#dominoforever | Product Ideas Portal

 

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

Add NotesDocument to a Collection like an array

Our Problem:

We are trying to search multiples NotesDocuments from an agent in a database to a view in another database. We then proceed to add those documents to a NotesDocumentCollection with the function AddDocument (NotesDocumentCollection - LotusScript®)
but when we iterate through that collection,after adding all the documents, it is unsorted.

Explanation:

After reading the AddDocument function it says only the ViewEntryCollections and DocumentCollections created from FTSearch are sorted, all other Collections are inserted using an internal algorithm.

Idea:

Maybe this function could have a boolean that specifies if you want that Collection sorted with the algorithm or you could add the documents like an array.

  • Guest
  • Nov 22 2021
  • Needs Review
  • Attach files
  • Guest commented
    23 Nov, 2021 01:17pm

    We have multiples UniversalID in an array and we loop throught that array to search each document individually. Our problem is that when we add the document to the collection it is sorted with the internal algorithm

  • Guest commented
    22 Nov, 2021 04:46pm

    Why not adding the UniversalID to an array?

    You can loop it with a basic For ... Next loop and easily get the document via the GetDocumentByUnID.