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.

Syntax

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

Arguments

$table

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

$id

the ID of the tab.

$where

a WHERE clause for the tab.

Return value

true

if the WHERE clause was set successfully.

false

in all other cases.

Example

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