Hello,
I am trying to show a loading indicator to avoid showing error while the objects is getting the data; when I search for a specific project number; the data shows error for a fraction of second before finding the data as you can see in this picture; I want to show a loading indicator to alert the user the data is coming. How can I do that in workshop; I am using property list and object tables to display those data.
Hi @Coder can you describe a bit the flow of your variables? Usually a variable that is still loading (or waiting to load) will have the gray pulsating appearance (on lists and tables) or a spinner (on metric cards and buttons).
To my understanding the error is shown if the variable calculation executed - but failed. So I assume your variable is maybe executing multiple times since you say it reloads at some point? - you could check this with the profiler.
I am asking because we had a similar case. On module load a function triggered to calculate some variable, but failed due to an input not be ready yet (it was a funky json string we were only able to pass forward through the set variable). Hence the init state of the variable mattered. We were able to catch this by putting a simple case variable in between our actual input and the function to output a defined case if the input is null (not yet set).
I hope this gets somewhat clear best you share a bit the flow, then our replies can be more targeted
Thank you for your feedback. You are right; the issue was I am using a function to return this data; when the input for the function is not provided or wrong; it shows error until the right input is passed to the function. I have used the data coming from the ontology object instead and it seems that it solved the issue.