Skip to content

Wait while queries being executed #11277

Answered by andz-bb
NicolasFabre81 asked this question in Help
Discussion options

You must be logged in to vote

hey @NicolasFabre81

you can do this using App State and Conditional UI. Here's a quick demo:

First I have set up my button actions so that before my query runs, I create a state variable loading and set it to true. Then my query runs and once it is finished I then have another step to delete the loading state.

This means that we can now conditionally render components based on that loading value which will only be true when the query is running.

The most simple example of this is that I can hide my button while it is loading by doing this:

I can then render something else in the button's place using the same conditions. I added an embed component with HTML for a Spectrum CSS spinner sin…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@NicolasFabre81
Comment options

@andz-bb
Comment options

andz-bb Jul 20, 2023
Collaborator

@NicolasFabre81
Comment options

@andz-bb
Comment options

andz-bb Jul 20, 2023
Collaborator

@NicolasFabre81
Comment options

Answer selected by ConorWebb96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
actions Relating to Budibase app actions
2 participants