Hi Brian
You have to do the following:
Create a custom controller for Opportunities;
Inside this custom controller implement the method action_listview() containing something like that:
PHP Code:
function action_listview() {
require_once('custo/modules/Opportunities/OpportunityListView.php');
$this->view = 'list';
$this->bean = new OpportunityListView();
}
Create the script custo/modules/Opportunities/OpportunityListView.php containing the class OpportunityListView which should extends the default Opportunity class.
Inside this custom class implement the method create_new_list_query. Take a look at this function into data/SugarBean.php, you will see the parameters and return of function.
Actually you need to modify the $ret_array['where'] in order to apply your specific query according to status of checkbox.
Kind regards
Bookmarks