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.
Syntax
WhereTabs.addTab(table, where, title, id);
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.
where
a WHERE clause for the new tab.
title
the title of the tab.
id
the ID of the new tab.
Return value
true
if the tab was added successfully.
false
if the tab was not added successfully.
Example
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