PageSearch

App.searchV2. PageSearch

Renders search side panel which allows users a way to find objects of interest related to context objects and load search result into page dashboard

Constructor

new PageSearch(input)

See:

To create an instance, use factory method App.searchV2.createPageSearch

Parameters:
Name Type Description
input object

input

Methods

addEvents()

addToolbarExportItem()

Adds command to export search to search panel toolbar

applyCustomization()

Applies customization associated with search on search options.

close()

createSearchPanel(input) → {*|Any}

Parameters:
Name Type Description
input
Returns:
Type
* | Any

destroy()

disableDrag()

getCriteria() → {Object}

Returns:
Type
Object

getOptions() → {*}

Returns:
Type
*

getPage() → {*}

Returns:
Type
*

getQuery() → {Object}

Returns:
Type
Object

getSearchAsUrl()

Returns current search criteria as search url

getSearchLimit(searchForm) → {*|number}

Returns the search limit, if its empty then returns the default search limit

Parameters:
Name Type Description
searchForm
Returns:
Type
* | number

getWidgetsToLoad() → {Array}

Returns widget which should be loaded with search result data server side.

Returns:
  • Array of widget which should be loaded server side.
Type
Array

handleReloadableCharts(search)

Handles the charts to reload with search result data

Parameters:
Name Type Description
search data

result data

handleSearchFormFields(data)

Handles search result data.

Parameters:
Name Type Description
data Object

Search result data

initialize()

initializeDragElement()

isLoadResultServerSide() → {boolean}

Whether to perform and load search result server side.

Returns:
Type
boolean

isOpen() → {boolean}

Returns:
Type
boolean

moveDragElement(leftOffset)

Parameters:
Name Type Description
leftOffset

off(event, handler)

Parameters:
Name Type Description
event
handler

on()

Events

onCriteriaUpdate()

onCursorMove(start, end)

Parameters:
Name Type Description
start
end

onMouseDown(mouseDownEvent)

Parameters:
Name Type Description
mouseDownEvent

onReady()

onResult(data, query) → {*|Any}

Parameters:
Name Type Description
data
query
Returns:
Type
* | Any

open()

removeDrilldownDashboard()

Since:
  • 2023.4.0

Removes Child dashboard created out of drilldown functionlity

removeEvents()

render()

saveCustomization(customization)

Parameters:
Name Type Description
customization Object

saveSearchPanelCustomization(input)

Parameters:
Name Type Description
input Object

Search panel customization

Parameters:
Name Type Default Description
force false

searchAndLoadToWidget(query)

Calls ajax service to perform search and load the widgets with search results server side.

Parameters:
Name Type Description
query Object

Search query

setState(state)

Parameters:
Name Type Description
state

toggleVisibility()