Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a methods which is triggered with Document.AfterMove, but I have just found if I delete this node Document.AfterMove is still triggered.
Is there something in MoveEventsArgs that I can check to make sure its not deleting (MoveToTrash()) the node before I allow the event to continue?
I haven't checked this, but could you check the sending document's parent ID for -20 (recycle bin) before proceeding?
ParentId should be -20 for anything in the trash.
Matt
Will do thanks :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
MoveEventArgs Question MoveToTrash()
I have a methods which is triggered with Document.AfterMove, but I have just found if I delete this node Document.AfterMove is still triggered.
Is there something in MoveEventsArgs that I can check to make sure its not deleting (MoveToTrash()) the node before I allow the event to continue?
I haven't checked this, but could you check the sending document's parent ID for -20 (recycle bin) before proceeding?
ParentId should be -20 for anything in the trash.
Matt
Will do thanks :)
is working on a reply...