Skip to Main Content
HCL Domino 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

Status Under Consideration
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Apr 8, 2019

Introduce a "Key-Value pair" datatype with Sorting and duplication handling in LotusScript

Currently LotusScript has list datatype which can act as key-value element to hold and manipulate the values. But limitation on list is is cannot handle the duplication of elements, neither it can sort. Introduce a dedicated datatype which will be for Key-Value pairing with sorting and duplication handling. 

  • Attach files
  • Guest
    Reply
    |
    Jul 5, 2019

    I found a nice sorting module, small and easy to use:

     

    sort (firstBy().thenBy().thenBy())

     

    https://github.com/Teun/thenBy.js/tree/master

     

    const firstBy = require('thenby');
     
    docs.sort( firstBy("Index", {ignoreCase:true}).thenBy("DocTitle",-1));
     
     
  • Guest
    Reply
    |
    Apr 9, 2019

    I agree to the sorting part but duplicate entries is handled in the list because you can only have one entry with a certain key. Also a function to get All list key tags /values as array