Copied to clipboard

Flag this post as spam?

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


  • Huw Reddick 734 posts 2445 karma points
    Mar 22, 2022 @ 08:37
    Huw Reddick
    0

    Running custom code

    Hi Stuart,

    I was wondering if there were any events in converge that I could hook into in order to run some custom synch code. Maybe an oncompleted event or onstart perhaps.

    I have some custom data tables that I would like to synchronise when converge is run

  • Stuart Mullinger 76 posts 393 karma points
    Mar 22, 2022 @ 10:51
    Stuart Mullinger
    100

    Hi Huw,

    There are no events to hook into as such, but you could add some JavaScript code into edit.controller.js under App_Plugins. There is a chain of functions in there that you could hook into.

    The only issue there I can think of is that NuGet may give you some problems overwriting your changes with the original. Maybe a post-build event to apply your changes?

    Stuart.

  • Stuart Mullinger 76 posts 393 karma points
    Mar 22, 2022 @ 10:52
    Stuart Mullinger
    0

    Having some simple event management seems like a good idea. I'll add it to my plans, but it won't be for a while I'm afraid.

  • Huw Reddick 734 posts 2445 karma points
    Mar 22, 2022 @ 11:26
    Huw Reddick
    0

    Thanks Stuart, I did think about hooking into the controller.js, so thanks for confirming.

Please Sign in or register to post replies

Write your reply to:

Draft