Wappler Version : 4.0.7
Operating System : MacOS
Server Model: ASP.NET
Database Type: MSSQL
Hosting Type: IIS
Expected behavior
Output Fields should be available for selection from the linked query
Actual behavior
Output Fields are not available for selection. Empty List message is shown.
How to reproduce
Add a DB Query with output for 1 or more fields
Add a Repeat step and select the above query
No Fields are available under Output Fields in Repeat step from the query
I believe this bug was fixed in the latest update v4.0.7. I have Set Value step in the repeat that I have moved after the query as had been suggested as a workaround. Moving the Set Value steps worked in another SA but it’s not resolving the issue in this SA.
Is there any workaround available for this issue? I can add a Repeat for the same query and add Output Fields outside the Condition, but as soon as I move it inside the Condition, the Output Fields are removed.
A workaround at this stage is to add the Output Fields manually by opening the Server Action in Code View. Find the code for Repeat record_repeat and add fields in the outputFields group.
Thank you @guptast! I dragged the API and Repeat outside of the Condition and was able to use the UI to add the Output Fields and setup the fields in the repeat. I then moved the API and Repeat back into the Condition.
Just to check I see in the screenshot you tested query which Is outside the condition for me this also works as expected, for me the issue is where you have query_copy and query1 do these also work for you?
Screen Recording 2022-02-14 at 17.25.24
I also recreated lib to check if any files was outdated
The schema was defined and that's why I could add the fields once I moved the API and repeat outside of the Condition. I tried to replicate the issue again, but was unsuccessful. I did make some changes to the Server Action though, so I'm not sure if the upgrade to v4.5.3 was the fix or if something I had in the previous Server Action setup was the cause. I'll let you know if I experience it again.