Search option is removed after adding Where condition to list view ?!

HI All,

Hi all

i am want to customize the list-view based on condition so i followed this artical to add where condition in list view

Add where condition on list view

but after doing this i am not getting search option in my list view can any one can guide me on this


Can you provide a bit more detail please?

(your code, where you stored the file, a screenshot of the result, SuiteCRM log errors, Apache/PHP log errors, other relevant information)


Hi All ,

i managed to fix it

the problem was we where not calling the method for it we were just generating the new list so finally the listviewProcess() method will look some thing like this

public function listViewProcess()        // genrating listview 
        $this->lv->searchColumns = $this->searchForm->searchColumns; 

        if(empty($_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false){
            $this->lv->setup($this->seed, 'include/ListView/ListViewGeneric.tpl', $this->where, $this->params); 
            echo $this->lv->display();       

Thanks For your time and support