Hi ive been struggling with Sugar for ages with this issue, i cannot find any decent info, or if i do find info i can never get it to work as expected.
How can i make this query on listview into an action button:
i have the button setiup in menu.php which shows in menu and this works on original listview, but i want a custom listview appear on a button click, but uses the original listview.PHP Code:<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.list.php');
// name of class match module
class REP_Tech_SupportViewList extends ViewList{
// where clause that will be inserted in sql query
var $where = 'priority = \'P1\'';
function REP_Tech_SupportViewList()
{
parent::ViewList();
}
/*
* Override listViewProcess with addition to where clause to exclude project templates
*/
function listViewProcess()
{
$this->lv->setup($this->seed, 'include/ListView/ListViewGeneric.tpl', $this->where, $this->params);
echo $this->lv->display();
}
}
?>
so, its a search type method without it looking like a search, more like a brand new listview, when infact its just using one big table.
thanks in advance
Brendan


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks