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
Created by Guest
Created on Jul 25, 2018

New LS method "notesView.GetCategoryEntryByKey"

Set notesViewEntry = notesView.GetCategoryEntryByKey( key [, exactMatch% ] )

 

This would give the great benefit, to access the total columns of a view category row (a ViewEntry with IsCategory = True).

 

Example:

Think about a view, with categories and documents below, with numbers to be summed up.

The total value of all documents below a category can be read within the category ViewEntry.

This value already exists within the view index - nothing needs to be summed up or calculated - the result is already there.

But unfortunately we have no LS command to get it!

 

Mark Reiser, sirius-net GmbH

 

LotusScript, Script, LS

  • Attach files
  • Guest
    Reply
    |
    Mar 11, 2022

    It would be much more performant without that lenghty workaround!


    >>set doc = view.GetDocumentByKey("yourCategoryValue", True) 'get the first doc under your category

    >>set vnav = view.Createviewnav() 'build a view navigator for the entire view

    >>set ve = vnav.Getentry(doc) 'get the view entry correspoding to doc

    >>set vecat = vnav.GetPrevCategory(ve) 'now access the category entry itself

  • Guest
    Reply
    |
    May 26, 2020

    A bit of a late answer, I know. But you can do that already using a NotesViewNavigtor, as in

    (assuming you already have a view object)

    set doc = view.GetDocumentByKey("yourCategoryValue", True) 'get the first doc under your category

    set vnav = view.Createviewnav() 'build a view navigator for the entire view

    set ve = vnav.Getentry(doc) 'get the view entry correspoding to doc

    set vecat = vnav.GetPrevCategory(ve) 'now access the category entry itself

  • Admin
    Thomas Hampel
    Reply
    |
    Oct 27, 2018

    Moving idea to product : Domino Designer

  • Guest
    Reply
    |
    Jul 26, 2018

    Even in Java and SSJS