You will need to learn asynchronous programming
Simply put your "next line of code" in your "onSuccess" function !
Thanks for the feedback
Imagine a big form with tons of data to load.
It will takes forever if every ca_reportQuery had to wait until it's completion. It will be user hostile since the page will be unresponsive until every data is loaded.
And if you do not want your user to interact with the form while the data is being loaded, you need to hide everything and display a loading sign. And show everything when every ca_reportQuery is done.
Thank you for submitting this idea. The product team has reviewed this idea and determined that it will introduce performance issues; therefore, we have marked the idea as not planned. We greatly value your contributions to our community and are committed to continued engagement with you to improve our products. We hope to have you participate in the transformation process. Please be sure to stay tuned to the community for news of related events.
Retrieving data ...