Please enable JavaScript to view this site.

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

Additional WHERE tabs API: addTab

Scroll Prev Next More


The addTab method adds a tab to 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::addTab($table, $where, $title, $id);



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


a WHERE clause for the new tab.


the title of the tab.


the ID of the new tab.

Return value


if the tab was added successfully.


if the tab was not added successfully.


Add the 'ANTON orders' tab:


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

See also:

Additional WHERE tabs API: deleteTab

Additional WHERE tabs API: setTabTitle

Additional WHERE tabs API: setTabWhere

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