Query.run() is not a function

I have page widget. When I use sql query for data it works fine.
But I want to use js function to provide the data, so I can add some logic before the page data requested.
this is the js object

export default {
	load: () => {
		select_query.run()
		return select_query.data
	}
}

When I run this function it works fine.
But when I provide it for table data, got the error:

TypeError: select_query.run is not a function

When I delete select_query.run() it works ok.

Please try using {{JSObject1.load.data}} in the TableData property.
Read more information on how to use the response of an async function in a sync field.

1 Like