Ajax

App.searchV2. Ajax

Ajax instance

Constructor

new Ajax()

See:

Methods

autocomplete(query, handlerSettings) → {*}

Parameters:
Name Type Description
query
handlerSettings
Returns:
Type
*

deleteSearch(searchConfigId, searchId) → {*}

Deletes a saved user search

Parameters:
Name Type Description
searchConfigId string

Id of search config

searchId string

Id of search to be deleted

Returns:
Type
*

expand(node, handlerSettings) → {*}

Parameters:
Name Type Description
node

Node which should be expanded

handlerSettings

Tree Handler settings

Returns:
Type
*

federatedSearch(search) → {*}

Parameters:
Name Type Description
search
Returns:
Type
*

getAutocompleteToken() → {CancelToken|*}

Returns:
Type
CancelToken | *

getConfig(configRef) → {*}

Parameters:
Name Type Description
configRef
Returns:
Type
*

getConfigQuery(configRef) → {string}

Parameters:
Name Type Description
configRef
Returns:
Type
string

getExpandToken() → {CancelToken|*}

Returns:
Type
CancelToken | *

getSearchToken() → {CancelToken|*}

Returns:
Type
CancelToken | *

objectsToData(…args) → {*}

Parameters:
Name Type Attributes Description
args <repeatable>
Returns:
Type
*

resetRefineCriteria()

Reset refine criteria of federated search

saveSearch(searchConfigId, search) → {*}

Saves user search by calling saveSearch ajax service

Parameters:
Name Type Description
searchConfigId string

Search config against which search will be saved

search Object

User search to be saved

Returns:
Type
*

saveSearchAsDatasetService(data) → {Object}

Calls saveSearchAsDatasetService ajax service

Parameters:
Name Type Description
data Object

payload to be sent over to ajax call

Returns:
  • Promise object of ajax call
Type
Object

saveSearchService(method, data) → {Object}

Calls saveSearch ajax service

Parameters:
Name Type Description
method string

Name of ajax service method

data Object

payload to be sent over to ajax call

Returns:
  • Promise object of ajax call
Type
Object
Parameters:
Name Type Default Description
queryData
serviceMethod search
Returns:
Type
*

searchAndLoadTable(queryData) → {*}

Parameters:
Name Type Description
queryData
Returns:
Type
*