Skip to content
🚀 Rapid Application Development with the App Builder

postQuery ​

The postQuery hook allows developers to execute custom code after a query is performed.

Parameters ​

ParameterTypeDescription
tablereferenceTable instance and state.

Structure parameter table ​

js
table: {
	instance: *ref_to_table_api,
	state: *ref_to_table_store,
	requery: *ref_to_requery_table_function,
}

The requery function supports two optional parameters:

js
requery(recalculateRowCount, enableLoadingFeedback)
  • recalculateRowCount: When true, forces a row count recalculation. (default: false)
  • enableLoadingFeedback: When false, disables the spinner and progress bar. (default: true)

Return Value ​

None

✨ Simple Example of a postQuery Hook ​

js
((table) => {

	wpda.log.info("Message from postQuery", table)

})