This class may be used to performe query searches to in tables specified by their IDs. Use the SimpleSearch method in your client-side scripts.
search(text, tableIds)
This method performs a search query (specified in the text argument) on tables (specified with the tablesIDs argument). The tableIDs argument is an array of the sys_id type.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
text | String | Y | N |
tableIds | array<sys_id> | Y | N |
Return:
Type | Description |
---|---|
array<SimpleRecord> | This method returns an array of records of the SimpleRecord type. |
Example:
var searchManager = new SimpleSearch(); searchManager.search('some text', [155931135900000007, 155931135900000002, 156846521901231916]);