2010-08-02 35 views

回答

2

也许这就是帮助...

在你的子面板定义中添加:

'fill_in_additional_fields' => true, 

这将保证定制机事件在生成子面板的情况下触发“process_record”。

之后,创建一个处理此事件的模块Opportunities的逻辑挂钩。在处理程序中添加代码是这样的:

// this hook is fired on several occasions (DetailView, ListView, Subpanel) 
// define your conditions where you want to manipulate your field 
if ($_REQUEST['...'] == 'DetailView' && $_REQUEST['module'] == '....') 
    return; 

if($opportunity->date_modified) ...add your code here 

现金何去何从http://www.sugarcrm.com/forums/showthread.php?t=44241