0

Delete all attachment from a specific record using the ninoc code

Hello support,

How can I delete all the attached files from a specific record using the ninox code?

Greetings

A Green

7replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Birger H
    • Birger_H
    • 3 yrs ago
    • Reported - view

    This is not (yet) possible :-(

    Birger

    Like
  • And Birger it is possible to delete only one attachment with programming code

    Like
    • Birger H
    • Birger_H
    • 3 yrs ago
    • Reported - view

    If that attachment is displayed in an Image field you can:
    –––
    'image field' := null
    –––

    Birger

    Like
    • James Déraps
    • Cegep de jonquiere
    • James_Deraps.1
    • 3 yrs ago
    • Reported - view

    Yes I know that,  but if I use directly in the attachment, no way?

    Like
  • Hi James, 

    The wish for a function to delete one or all or specific attachments from the "Attachments" tab is already added to our "Change requestes" database. We hope to be able to release it in one of our upcoming versions.

    Kind regards, Jörg

    Like
  • Hello Guys I found an alternative for this problem.

    You have to duplicate the current record, which will transfer all the data except the attachments and image fields.

    After that you have to delete your original record;

    For instance your button code will look like:

    let new := duplicate (this);

    delete this;

    openRecord(new) 

    Like
  • P.S. Be careful with this one! It might not transfer everything!

    Like
Like Follow
  • 2 yrs agoLast active
  • 7Replies
  • 2011Views