我正在使用SugarCRM 6.7,我想自定义弹出窗口中的列表视图查询。当我在Cases模块中打开Accounts弹出窗口时,我需要一个自定义查询。
我已经在\custom\modules\Accounts\views\view.popup.php中创建了一个文件。
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class CustomViewPopup extends ViewPopup{
function CustomViewPopup(){
parent::ViewPopup();
}
}
但我需要改变初始查询,我尝试在view.list.php中使用$this->where = "whereCondition"来进行等式运算,但没有成功。
如何在view.popup中更改初始查询?谢谢。