1
我想显示某个WHERE子句弹出列表视图,但我的代码似乎并没有得到执行?如何覆盖SuiteCRM中的弹出列表视图查询(listViewProcess)?
这是我在我的自定义/ MODULE_NAME /视图/ view.popup.php:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class CustomRegistrationMetaViewPopup extends ViewPopup{
public function listViewProcess(){
parent::listViewProcess();
$this->params['custom_select'] = "select * ";
$this->params['custom_from'] = "from table ";
$this->where .= "where condition = 'Verified'";
}
function CustomRegistrationMetaViewPopup(){
parent::ViewPopup();
}
function preDisplay(){
parent::preDisplay();
}
}
我的功能不会被调用。任何想法?
哪里是你的文件放在哪里?你正在运行什么版本? – Reisclef
版本7.7.8 Sugar Version 6.5.24(Build 509)。该文件被放置在自定义/ MODULE_NAME/views/view.popup.php – kratos
该模块的名称是什么? – Reisclef