Hello, I need to open a popup before a save an opportunity.
I have created the logic_hooks.php file in custom/modules/Opportunities and its content is
Then I've created the AlertPopup.php file in the same location, and its content is:PHP Code:if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
$hook_array = array();
$hook_array['before_save'] = array();
// array(hook execute order, 'hook name', 'hook code location', 'hook code class name', 'hook code function to execute')
$hook_array['before_save'][] = array(1, 'case_closed', 'custom/modules/Opportunities/AlertPopup.php', 'AlertPopup', 'alert');
But now I don't know to open an alert popup. Can anybody help me?PHP Code:if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class AlertPopup{
function alert(&$bean, $event, $arguments){
//Debug content of $bean
$GLOBALS['log']->fatal("<pre>".print_r($bean->fetched_row, true)."</pre>");
/*** NEED TO OPEN ALERT POPUP AT THIS POINT ***/
}
}


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks