Using txt fields that are updated by a
Using txt fields that are updated by a bg runnable.
Is there a way to display a temp value while the bg is processing?
Right now I just get a big ugly "no text" box
2 Replies
If you want to do this in code:
I would maybe create a frontend scripts that sets the value in the text (using
setValue
) to what you want and then trigger the background scripts with using the function recompute
and then use the value to set a new value in the txt.oh I like the sound of that.
So just to close this out I did end up going with a frontend script that uses setValue to set everything to "loading".
That script runs on load and refresh and once it completes it kicks off the background script that actually pulls the data to avoid any kind of weird race situation between the two.