Ajax

App.searchV2. Ajax

Ajax instance

Constructor

new Ajax()

See:

Methods

addNodeToStructureBean(args, args[0, args[1, args[2, args[3, args[4) → {Promise}

Adds a node to the server-side DefaultStructureBean for the given tableBindkey.

Parameters:
Name Type Description
args Array

Array containing [tableBindkey, parentNodeId, relationshipId, objectId, direction].

args[0 string

The bind key of the table

args[1 string

The ID of the parent node

args[2 string

The relationship ID used to link the new node.

args[3 string

The ID of the object to be added as a node.

args[4 string

The direction of the relationship (e.g., 'to' or 'from').

Returns:
Type
Promise

addObjectToSearchBasedTable(args, args[0, args[1) → {Promise}

Adds an object to the server-side SearchTableBean for the given tableBindkey.

Parameters:
Name Type Description
args Array

Array containing [objectId, tableBindkey].

args[0 string

The ID of the object to be added.

args[1 string

The bind key of the table.

Returns:
Type
Promise

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
*

removeObjectFromSearchBasedTable(args, args[0, args[1) → {Promise}

Removes an object from the server-side SearchTableBean for the given tableBindkey.

Parameters:
Name Type Description
args Array

Array containing [objectId, tableBindkey].

args[0 string

The ID of the object to be removed.

args[1 string

The bind key of the table.

Returns:
Type
Promise

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
*