Async loading
Posted: Thu Nov 29, 2018 8:35 pm
VL Web supports async reading processes which is very cool. During the waiting time it's possible to show a spinner etc. In the examples it looks like this:
We often use dataobjects with data collections to cache the data during a session. If we want to load the data from this dataobject we can't show the spinner because you can't do this in a simple async way. Sometimes a createinstance and data loading takes two or more seconds. During this time the user has like a frozen display. We want to aviod that.
Therefore we use the following construction. We fadein a label. At the end of the animation we load a list. The handling is a bit complicated.
Questions:
1) Does this way make sense to have an async loading process? Do you have a better suggestion? (hopefully yes)
2) Is it correct that the fadein animation not starts until everything else is done (the whole call stack)?
If you try to fadein the spinner and load the data in the same Routine, the Animation does not start until everything else is complete.
Another way to visualize the loading process is to start a Dialog but you have a similar entangled situation. (but Internet explorer has sometimes problem with it)
What are your suggestions? What are your experiences about such situations?
Attached an example
We often use dataobjects with data collections to cache the data during a session. If we want to load the data from this dataobject we can't show the spinner because you can't do this in a simple async way. Sometimes a createinstance and data loading takes two or more seconds. During this time the user has like a frozen display. We want to aviod that.
Therefore we use the following construction. We fadein a label. At the end of the animation we load a list. The handling is a bit complicated.
Questions:
1) Does this way make sense to have an async loading process? Do you have a better suggestion? (hopefully yes)
2) Is it correct that the fadein animation not starts until everything else is done (the whole call stack)?
If you try to fadein the spinner and load the data in the same Routine, the Animation does not start until everything else is complete.
Another way to visualize the loading process is to start a Dialog but you have a similar entangled situation. (but Internet explorer has sometimes problem with it)
What are your suggestions? What are your experiences about such situations?
Attached an example