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 Notes
Created by Guest
Created on May 18, 2020

Rename attachments in a notes document

Provide an easy way to change an attachment name in a notes document, for example by opening the document in edit mode, right clicking on the attachment and choosing an action "Rename the attachment" and providing a new name.

At this time it's necessary to save the attachement to a disk, rename it, remove original attachment from the document and reattach the renamed attachment back in to the document.

  • Attach files
  • Guest
    Reply
    |
    Dec 25, 2023

    Overcome the first challenge by using "EditGoToField" so that the focus is always on the field containing the attachment.

    However, challenge 2 is still there. The original file name is not getting removed as shown in screenshot.

  • Guest
    Reply
    |
    Dec 25, 2023

    Thanks for sharing the sample code. Used "D" drive and accordingly made code modifications.

    I tried it but faced the below challenges.

    1. There are other fields before impacted attachment field in the document. While executing the code, the document opens in edit mode and focuses on another field that comes before the attachment-related field. Hence, an error appears.

    2. Perform modifications and ensure the document either has the first field as an attachment field or there is only an attachment field in the document. Executed the code but found that the document opens in edit mode and the rich text field now has old as well as renamed files present in the field. Tried playing with parameters passed in "EditInsertFileAttachment @Command" but had no success.



  • Guest
    Reply
    |
    Oct 16, 2023

    This would be very useful if it were a fixed part of the notes client.

    It would also work via a toolbar icon with the following formula.

    But it is not so easy for the user to set it up.

    vAttachList := @AttachmentNames;

    vStop := @If(@Attachments=0;"1";"0");

    @If(vStop="0";

    @Do(vSourceName:=@If(@Attachments>1; @Prompt([OkCancelList];"Choose File";"Please choose file";"";vAttachList);vAttachList);

    vNewName:=@Prompt([OkCancelEdit];"New Filename";"Please type in new file name";vSourceName);

    @Command([EditDocument]; "1");

    @Command([EditDetach];vSourceName; "C:\\Temp\\" + vNewName);

    @Command([EditInsertFileAttachment]; "C:\\Temp\\" + vNewName;"1";"0";"0";"1"));

    @Prompt([Ok];"Action - File rename - cancelled!";"The document does not contain any attachments!"))

  • Guest
    Reply
    |
    Sep 14, 2021

    This would be very helpful.

    The customer users are asking regularly why it is not possible to rename the attachments. It seems a very easy step.

  • Guest
    Reply
    |
    May 26, 2020

    Also, it will be much better if all attachments show on top of the mail body. Like several replayed mail make attachment goes to the end of the mail body.