Copied to clipboard

Flag this post as spam?

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


  • Rune Grønkjær 1303 posts 2895 karma points
    Feb 05, 2014 @ 11:34
    Rune Grønkjær
    0

    Event when entry is deleted?

    Hi Guys,

    Does Contour have some kind of event I can hook into when an entry is deleted? I need to do something whenever an entry is deleted from the Contour entry list UI.

    Thanks

    /Rune

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 05, 2014 @ 11:48
    Tim Geyssens
    0

    Nope but can add it in for you, before the actual delete and sending the record as arg or what do you need?

  • Rune Grønkjær 1303 posts 2895 karma points
    Feb 05, 2014 @ 13:57
    Rune Grønkjær
    0

    Yes. That would be the idea. Before deletion would be perfect.

    Would it be as a new workflow type?

    I also need to ask when you can add it in? Customers you know :)

    /Rune

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 05, 2014 @ 14:02
    Tim Geyssens
    0

    Not a workflow , just a .net event, will add it now, so available to you today!

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 05, 2014 @ 14:11
    Tim Geyssens
    0

    Building now so available to you in a couple of mins :)

  • Rune Grønkjær 1303 posts 2895 karma points
    Feb 05, 2014 @ 14:11
    Rune Grønkjær
    0

    Sweet. That will be great :)

    Thanks for the quick response.

    /Rune

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 05, 2014 @ 14:15
    Tim Geyssens
    100

    Ok you can use http://nightly.umbraco.org/Umbraco%20Contour/3.0.19%20WIP/

    If you check the class Umbraco.Forms.Data.Storage.RecordStorage

    it has 3 events now

    public static event EventHandler<RecordEventArgs> RecordDeleting;

    public static event EventHandler<RecordEventArgs> RecordUpdating;

    public static event EventHandler<RecordEventArgs> RecordInserting;

    At your service ;)

  • Rune Grønkjær 1303 posts 2895 karma points
    Feb 05, 2014 @ 14:37
    Rune Grønkjær
    0

    That's insane dude :D

    We will test it and get back to you if we find a bug or the like :)

    Thanks again

    /Rune

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 05, 2014 @ 14:45
    Tim Geyssens
    0

    yup that's perfect :)

  • 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