sugarbean - Sugarcrm module Subpanel create dosent trigger hook -


i working in hook. when create record subpanel dosent trigger hook. when use link existing record hook executing. hook should use when create subpanel.

$hook_array['after_relationship_add'][] = array(     1,     'after relationship hook',     'custom/modules/records/hooks/linkedrecord.php',     'records_hooks_linkedrecord',     'linkedrecords', ); 

community link: https://community.sugarcrm.com/message/94290-subpanel-create-dosent-trigger-hook

if want trigger code on creation of record need use after_save , before_save logic hooks. see link further details: http://support.sugarcrm.com/documentation/sugar_developer/sugar_developer_guide_6.5/module_framework/logic_hooks/module_hooks/

last not least, create module or sub-panel trigger same hooks (after , before) no difference in creation sub-panel , module.

hopefully provided documentation clear enough.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -