2012-06-25 19 views

回答

0

您是否正在寻找只在视图中设置默认值?只有在使用钩子的情况下才能保存值。如果您想在编辑(或详细视图)中设置默认值,只需设置$ this-> bean中的字段:

class AccountsViewDetail extends ViewDetail { 
    function display(){ 
     $this->bean->mycustomfield_c = 'Default'; 
...... 
相关问题