Global Query Fields can't be set to output in repeat

Wappler Version : 3.9.4
Operating System : Big Sur (M1)
Server Model: PHP
Database Type: MySQL
Hosting Type: AWS Docker

Expected behavior

What do you think should happen?

When using a repeat in Server API set with an expression pointing to a Global action, the fields sould be available in the UI

Actual behavior

What actually happens?

The repeat can be set to the expression but the fields cannot be picked and therefore cannot be set to output.

How to reproduce

  • Detail a step by step guide to reproduce the issue
  • A screenshot or short video indicating the problem
  • A copy of your code would help. Include: JS, HTML.
  • Test your steps on a clean page to see if you still have an issue
  1. Add a query as a Global action
  2. Add a repeat to a API action
  3. Use the Global query as the expression for the repeat
  4. Try to set the output options

I have quite similar issue but with NodeJS.
Just a clarifying question: is your API action located under another repeat?

Hi Alexsejs,
This was specifically when trying to use a Global query (one set under Globals that runs for every SA file) for a repeat in an API file.

Is this still happing in tge latest version? I think we solved it already some time ago.

It’s still happening (in 4.1.3):

The query is in Globals

Fields are available in the picker for values/conditions/queries but not available for output in the repeat

I can confirm this behavior (bug) still exists in Wappler 4.2.0 when API action is located inside the repeat.
Despite you can’t select output fields - you can still use then whenever you what by using {{typing data entity name}} from repeat.

I am seeing the same thing still.

My database query inside the parent repeat does not output to the nested repeat as below. (This includes both repeats).

However, if I point the selected repeat to the initial charges_family database query, we get a dropdown with output fields.

I have also tried to edit the JSON file with no success.

Using Wappler 4.4.5

Cheers
Michael