Trigger an event

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 8, 2011   (RSS)

Re: [andycal] Trigger an event

By Jason - August 8, 2011

Hi,

You can do this without having to edit any CMS Builder code. What you can do is create a custom plugin for yourself that will be triggered when a record is saved. We have a number of different "hooks" in the software that allow you to write custom functions in plugins when certain actions take place. If you are using CMSB version 2.09 or above, you can see a list of all the hooks in the software from the plugins page.

For your purposes, it looks like you would want to use the hook record_postsave, which is triggered after any record is saved inside CMSB. Take a look at this post for a quick overview on how to get started on your plugin:

http://www.interactivetools.com/forum/gforum.cgi?post=89203#89203

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Trigger an event

By andycal - August 8, 2011

Excellent! Actually doesn't look too difficult either (could be famous last words!)