Hi All ,
Here what i am trying is in my list-view i want to add button near to delete option And when i click on that button called as ( New leads ) , i want to perform search with new leads and i want to display that …
*) so for adding button if i guess i need to change the ListViewGeneric.tpl file
*) and on click of that button can i call the entry point and overwrite the list-view ??
currently in my view.list.php contains code with default search of status =converted
<?php
require_once('include/MVC/View/views/view.list.php');
// require_once('custom/modules/Leads/LeadsListViewSmarty.php');
class LeadsViewList extends ViewList
{
/**
* @see ViewList::preDisplay()
*/
// var $where ;
function LeadsViewList()
{
parent::ViewList(); // parent listview
}
public function preDisplay(){ // predisplay logic gose here
parent::preDisplay();
}
function listViewProcess() // genrating listview
{
$this->processSearchForm();
if($this->where==''){
$this->where.="leads.status='Converted'";
}
$this->lv->searchColumns = $this->searchForm->searchColumns;
if(!$this->headers)
return;
$this->lv->setup($this->seed, 'include/ListView/ListViewGeneric.tpl', $this->where, $this->params);
echo $this->lv->display();
}
}
so how can i do it in upgrade safe manner ,
can some one please guide me on this with example i really want to learn the customization in list-view
Thank you for your time and support