2012-06-25 36 views

回答

0

您是否正在尋找只在視圖中設置默認值?只有在使用鉤子的情況下才能保存值。如果您想在編輯(或詳細視圖)中設置默認值,只需設置$ this-> bean中的字段:

class AccountsViewDetail extends ViewDetail { 
    function display(){ 
     $this->bean->mycustomfield_c = 'Default'; 
...... 
相關問題