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 30, 2020

Add foreach to handle document collections

When looping a document collection, one has to use a structure like this

Do Until(doc Is Nothing)

<<code>>

Set doc = col.GetNextDocument(doc)

Loop

or

Do Until(doc Is Nothing)

set docNext = col.getNextDocument(doc)

<<code>>

Set doc = docNext

Loop

It would be much easier (and more intuitive for new developers) to use a structure like this

foreach doc in col

<<code>>

next

  • Attach files
  • Guest
    Reply
    |
    May 5, 2020

    I agree it would be a nice to have, but I think there are more important ways to improve Lotusscript. -> this is a discussion stopper. just do it

  • Guest
    Reply
    |
    Apr 30, 2020

    I agree it would be a nice to have, but I think there are more important ways to improve Lotusscript.