Contains the methods to run the query of the widget in the Data search view.
Sometimes the query executed through the API may not be compatible from the Data search and it may be necessary to adapt it.
Methods
# setSearchRequest(searchRequest)
Sets the search request that will be used with the go to search functionality. It has to be compatible with the Data search
Parameters:
Name | Type | Description |
---|---|---|
searchRequest |
Object
|
|
query |
string
|
Text with the query to run, expressed in LINQ. |
dates |
Object
|
|
dates.from |
number
|
The start date as a UTC timestamp in milliseconds. |
dates.to |
number
|
The end date as a UTC timestamp in milliseconds. |
# setUseMainRequestForSearch(useMainRequestForSearchopt, customFixesopt)
If true the widget will try to to use the query of the first assigned request for the go to search functionality. It will try to fix it automatically so that it is compatible with loxcope.
This feature will not always work, some queries can't be fixed automatically.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
useMainRequestForSearch |
boolean
|
<optional> |
true | Indicate if widget will try to use the main query request |
customFixes |
Array.<function()>
|
<optional> |
Functions to be applied over the query. Each functions should be receive the query text. |