2010-08-02 31 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