Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7613759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:13:58+00:00 2026-05-31T02:13:58+00:00

Q: When a document is marked/unmarked for deletion, and this document is a parent

  • 0

Q: When a document is marked/unmarked for deletion, and this document is a parent of child documents, is there a way to also mark/unmark its children for deletion?

I know I can hook into DatabaseScript:OnDocumentDelete() and delete the documents immediately, but that’s not what my client wants (obviously, because done that way you couldn’t undelete them). Alternatively, I could implement my own “trash” functionality (to support undeletion), but it seems to me that this should be built-in.

Q: Put another way, is there a “softer” alternative to NotesDocument.Delete() which will merely (un)mark a document for deletion rather than deleting it straight away?

In any case, this cannot be the first time anyone’s had need of this; however, I have not been able to find useful resources on the Internet (possibly because it’s rather tricky to search for).

Help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:13:59+00:00Added an answer on May 31, 2026 at 2:13 am

    The functionality is not built in so you would have to create your own mechanism.

    The underlying question is whether there is an event to hook into that is triggered when a user unmarks a document for deletion. I don’t believe there is. Perhaps in the C API.

    You could alternatively prevent child docs from being deleted if they have a parent by handling the ondocumentdelete event and checking each doc to see if it is a response doc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$(document).ready(function() { $(span.link).mouseover(function(e){ $(this.children).css(display,inline); }); }); I'm not a javascript expert, but I've cobbled
This simple code checks if there is at lease one check box marked, When
$(document).ready(function() { $('#username').focus(function() { $(this).val(''); }) $('#username').blur(function() { var l = $(this).val.length; if (l
According to MySql in this document C.7.9.6. Changes in MySQL Connector/NET 5.0.5 (07 March
UPDATE: So I tried the AssetManager way and ended up with this: ... ...
Can someone tell me why this is not working? Throughout my document I have
I am using this code try document := (pDisp as IWebbrowser2).Document AS IHTMLDocument2; Body
So the makers of this API has my code clearly marked as functional, seeing
I realize that this is a subjective question, so I've marked it as a
Quoting from http://sites.google.com/site/gson/gson-design-document : Why are most classes in Gson marked as final? While

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.