Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Dynamic listview layout onclick button

Dynamic listview layout onclick button 4 days 20 hours ago #87002

  • anusopna
  • anusopna's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
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 .
Last Edit: 4 days 11 hours ago by pgr. Reason: add code tags
The administrator has disabled public write access.

Dynamic listview layout onclick button 3 days 14 hours ago #87072

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 10450
  • Thank you received: 1558
  • Karma: 358
Look for posts detailing how to inject some Javascript into a view.

Then do that hiding from Javascript, so you can respond to events client-side.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
Time to create page: 0.044 seconds
Powered by Kunena Forum