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

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Oct 16 2019
  • Unlikely to implement
  • Attach files
  • Admin
    Thomas Hampel commented
    7 Jan 01:05pm

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

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    7 Jan 12:52pm

    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 commented
    7 Jan 12:44pm

    Two lines of code are too complicated ?

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