Am I missing something basic? Query works fine in edit mode, not in live mode

Please tell me I'm missing something simple... For the life of me I can't get a table to populate with a basic query. It works fine when creating / editing the app, but as soon as I hit the play button to view the app in action... the table is empty, even though the SQL is valid and works fine when run directly in the database.

To confirm... the first screen shot shows the 100 results in edit mode. The 2nd screen shot shows no results in live mode.

Hello there! Welcome to the forum!
I'd like to point out that this is not the best way to consult a database. You should create a resource query to perform this operation.
Nevertheless, let's try to pinpoint the issue: Have you published your changes to the app by creating a new release? If not, please do, as the changes shown in the editor may not be live yet in the App (as the editor, you'll always see the latest changes, but as a user, you'll only see the latest published changes.
Hope this helps! Let me know if you have further questions.

1 Like

Hi @what_a_retool Did this turn out to be an issue where you needed to publish a new release?

Another note is that Javascript queries only trigger manually. If you need to trigger ActivitySelectQuery in order to see the table data, you'll need to create an event handler for that or set ActivitySelectQuery to run on page load (in the Advanced tab):