Hook when building BE
 

Hook when building BE

6 posts, 2 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    28 Oct 2020
    Link to this post
    Is there anyway to have the BE creation logic add custom logic I want to add? For example, after creating a BE and building I would like to create replication triggers automatically. I was thinking there may be a way for the BE Generator to call some custom generator logic.
  2. Daniel van Doorn
    Daniel van Doorn avatar
    17 posts
    Registered:
    18 Jun 2018
    Answered
    28 Oct 2020 in reply to Roger Blanchard
    Link to this post
    That's an interesting question. 
    I would say you could write your own generator plugin. Look in the Business Entity Designer configuration. 
    Look into one of the other generator classes on how to implement it. 
  3. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    28 Oct 2020 in reply to Daniel van Doorn
    Link to this post
    This looks promising. Let me take a deeper look.

    Thanks for the quick response.
  4. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    Answered
    28 Oct 2020
    Link to this post
    Hi Roger, a plugin is the way to go. 

    Those typically react on the various events of the Business Entity Designer.

    The BusinessEntityDatasetController reference is passed to the startup method of a plugin. And based on that reference, you can subscribe those events:

                poController:AfterGenerateSource:Subscribe (AfterGenerateSourceHandler) .
                poController:AfterRegenerateSource:Subscribe (AfterGenerateSourceHandler) .
  5. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    28 Oct 2020 in reply to Mike Fechner
    Link to this post
    Yep, it looks perfect.

    Thank you.
  6. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    30 Oct 2020 in reply to Mike Fechner
    Link to this post
    Mike & Daniel,

    This worked great. Thanks for the guidance.
6 posts, 2 answered