Php 将sugarcrm中的一个子面板分成两个,一个根据复选框是否选中显示条目,另一个为非选中条目
将sugarcrm中的一个子面板分成两个,一个根据复选框是否选中显示条目,另一个为非选中条目 我有一个名为mod_loaninvestor的模块,它的子面板是整个子面板mod_loaninvestor 现在我知道vardefs是创建副本并将其重命名为如下的地方Php 将sugarcrm中的一个子面板分成两个,一个根据复选框是否选中显示条目,另一个为非选中条目,php,sugarcrm,Php,Sugarcrm,将sugarcrm中的一个子面板分成两个,一个根据复选框是否选中显示条目,另一个为非选中条目 我有一个名为mod_loaninvestor的模块,它的子面板是整个子面板mod_loaninvestor 现在我知道vardefs是创建副本并将其重命名为如下的地方 <?php //WARNING: The contents of this file are auto-generated // created: 2014-01-24 13:12:28 $layout_d
<?php
//WARNING: The contents of this file are auto-generated
// created: 2014-01-24 13:12:28
$layout_defs["Contacts"]["subpanel_setup"]['mod_loaninvestor_contacts'] = array (
'order' => 100,
'module' => 'mod_LoanInvestor',
'subpanel_name' => 'default',
'sort_order' => 'asc',
'sort_by' => 'id',
// 'where' => "(mod_LoanInvestor.active_investment == "1")",
'title_key' => 'LBL_MOD_LOANINVESTOR_CONTACTS_FROM_MOD_LOANINVESTOR_TITLE',
'get_subpanel_data' => 'mod_loaninvestor_contacts',
'top_buttons' =>
array (
/*
0 =>
array (
'widget_class' => 'SubPanelTopButtonQuickCreate',
),
1 =>
array (
'widget_class' => 'SubPanelTopSelectButton',
'mode' => 'MultiSelect',
),
*/
),
);
// created: 2014-01-24 13:12:28
$layout_defs["Contacts"]["subpanel_setup"]['mod_loaninvestor_contacts1'] = array (
'order' => 100,
'module' => 'mod_LoanInvestor',
'subpanel_name' => 'default',
'sort_order' => 'asc',
'sort_by' => 'id',
'title_key' => 'LBL_MOD_LOANINVESTOR_CONTACTS_FROM_MOD_LOANINVESTOR_TITLE',
'get_subpanel_data' => 'mod_loaninvestor_contacts',
'top_buttons' =>
array (
/*
0 =>
array (
'widget_class' => 'SubPanelTopButtonQuickCreate',
),
1 =>
array (
'widget_class' => 'SubPanelTopSelectButton',
'mode' => 'MultiSelect',
),
*/
),
);
?>
如何使第一个条目只显示以下选中的条目
而另一个只显示未选中该字段的条目
谢谢你的帮助 你已经走到一半了。在定义新的LayoutDef的基础上,您需要创建一个新的子面板定义 深入研究mod_LoanInvestor和元数据/subpanels/default.php,并将其复制到default2.php或任何您想调用的地方。您需要使用WHERE子句来分隔两者 这里有一个要点,我用交易记录将计划的(未来的)交易与过去的(过账的付款)分开