In my invoice module I have 4 buttons and whenever i click each button the list view changes with the column respective to the button click .How could I achieve this.
I tried by adding a function in view.list.php .But it is not working.
public function listViewProcess(){
$_REQUEST['hideTabs'] .= 'RECEIPT_NO_C';
$_GET['displayColumns'] = 'NUMBER|NAME|TOTAL_AMT|QUOTE_NUMBER|DEPOSITED_IN_C|INVOICE_DATE|REF_TYPE_C|CHEQUE_NO_C|CHEQUESTATUS_C';
parent::listViewProcess();
}
Can anyone help me to solve this.
In short: How to hide the certain column when i click the button .