Skip to main content
Skip table of contents

Basic Functions For Templates

The most basic functions of the templating API can be used to access the result set and retrieve or set its columns and content.

Get the result columns of the given query as JSON serialized string.

CODE
/**
 * @param {String} queryName name of the query
 * @return {String} the stored columns JSON string of the given query
*/
PocketQuery.queryColumns(queryName)

Get the result of the given query as JSON serialized string.

CODE
/**
 * @param {String} queryName name of the query
 * @return {Array} the stored result JSON string of the given query
*/
PocketQuery.queryJson(queryName)

Get the result of the given query as a JavaScript array.

CODE
/**
 * @return Query result as JavaScript array.
*/
PocketQuery.queryArray(queryName)
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.