Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lee 1130 posts 3088 karma points
    Feb 17, 2011 @ 14:42
    Lee
    0

    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?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Feb 17, 2011 @ 14:46
    Tom Fulton
    0

    I haven't checked this, but could you check the sending document's parent ID for -20 (recycle bin) before proceeding?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Feb 17, 2011 @ 14:47
    Matt Brailsford
    1

    ParentId should be -20 for anything in the trash.

    Matt

  • Lee 1130 posts 3088 karma points
    Feb 17, 2011 @ 14:55
    Lee
    0

    Will do thanks :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies