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 No Plans to Implement
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Oct 16, 2019

Add methods hasDocumentByUNID and removeDocumentByUNID

I'd like to have 2 methods in class NotesDatabase

 

Function hasDocumentByUNID( unid as String ) as Boolean

Sub removeDocumentByUNID( unid as String )

 

It will help developers write more clear code

  • Attach files
  • Admin
    Thomas Hampel
    Reply
    |
    Jan 7, 2020

    Ok, thanks for clarification. however in terms of priority, this might not be a top10 feature.

  • Guest
    Reply
    |
    Jan 7, 2020

    getDocumentByUNID throws an ERR 4091 if the document does not exist. It does not return Nothing.

    And loading a document just to delete it takes more time than necessary. The C API has methods to delete a Note by note id and a bulk deletion method that takes an IDTable. The equivalent would be adding "removeDocumentByUNID" to NotesDatabase and a "delete" method to the NotesNoteCollection.

    Currently there's only "remove" in NotesNoteCollection which just removes the note id from the collection/IDTable.

  • Admin
    Thomas Hampel
    Reply
    |
    Jan 7, 2020

    Two lines of code are too complicated ?

    Set doc = db.GetDocumentByUNID( unid$ )
    IF not doc IS NOTHING Call doc.remove (true)