Named Query Technical Reference

Summary

  • Named Queries are stored in NamedQuery section of Initial Adaptable State

Named Query State

The NamedQuery section of Initial Adaptable State contains just a single collection:

PropertyTypeDescription
NamedQueriesNamedQuery[]Named Queries which can be referenced in other Expressions

Named Query

A Named Query has a single string property called Name:

PropertyTypeDescription
NamestringName of the Query, used to reference it in AdaptableQL Expressions
IsReadOnlybooleanSets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

It inherits from AdaptableBooleanQuery which also has a single property:

PropertyTypeDescription
BooleanExpressionstringAdapTableQL Expression that returns true / false

Named Query API

MethodReturnsDescription
addNamedQueries(namedQueries)voidAdds multiple new Named Query to Adaptable State
addNamedQuery(namedQueries)voidAdds a new Named Query to Adaptable State
getNamedQueries()NamedQuery[]Gets all Named Queries in Adaptable State
getNamedQueryByName(namedQueryName)NamedQuery | undefinedRetrieves Named Query with given name from State
getNamedQueryState()NamedQueryStateRetrieves Query section from Adaptable State
isValidNamedQuery(namedQuery)NamedQueryValidationResultChecks if the given Named Query has a valid name
openNamedQuerySettingsPanel()voidOpens Settings Panel with Query section selected and visible
runNamedQuery(namedQuery)voidRuns the given Named Query
runQueryByName(queryName)voidRuns Named Query which has given name