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.