#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 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

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Apr 30 2020
  • Needs review
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    05 May 08:29

    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

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    30 Apr 21:38

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