Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Additional WHERE tabs API > Methods

Additional WHERE tabs API: setTabWhere

Scroll Prev Next More


The setTabWhere method sets the WHERE clause of one of the Additional WHERE tabs on the List, Print, Export, or Chart page. This method should be used in the After table initialized event only.


WhereTabs::setTabWhere($table, $id, $where);



the name of the table name in which to modify the tabs. Use the $table variable provided in the After table initialized event.


the ID of the tab.


a WHERE clause for the tab.

Return value


if the WHERE clause was set successfully.


in all other cases.


Set a WHERE clause to the tab:


WhereTabs::setTabWhere($table, "anton", "CustomerID='ANTON'");

See also:

Additional WHERE tabs API: addTab

Additional WHERE tabs API: deleteTab

Additional WHERE tabs API: setTabTitle

SQL query screen: Additional WHERE tabs

Event: After table initialized

About Additional WHERE tabs API


Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software