The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Is it possible to implement any kind of loader in the View of a RM Server Web app?
Christos_Karapapas
Member Posts: 25 Contributor II
I would like to implement some kind of loader for a View of a Web app, since my initialization process runs for a dozen of seconds.
I know this is quite a broad question so I will try to narrow it down a bit.
I know that it would probable be quite difficult to implement something that would display a percentage of the process that has run already.
So I'm thinking either something to display when each subprocess of the initialization has finished, or a more generic spinner that would stop when the whole initialization is done.
I know this is quite a broad question so I will try to narrow it down a bit.
I know that it would probable be quite difficult to implement something that would display a percentage of the process that has run already.
So I'm thinking either something to display when each subprocess of the initialization has finished, or a more generic spinner that would stop when the whole initialization is done.
0
Answers
both "Visualization" and "User input" have a tab for setting up interactions. These refer to user actions, unfortunately. I see how a process could set a macro (referenced by a variable in the web app) but I don't see how this would submit the user input in order to execute the interaction effect.
My best guess is using some HTML and JavaScript to display the spinner in a panel, and hiding it when the loading is done (e. g. some table has rows).
Regards,
Balázs
Ok I found how to switch from one view to another, right after initializing a process, but how do I switch back after the process is done?
@BalazsBarany Thank you, also a nice idea!
I can see how to write CSS but I can't see how to write HTML or JS
adding a "Text Component" enables adding arbitrary HTML to your web app. This can also include JavaScript. (You can switch off "Use graphical editor".)
Regards,
Balázs
- Did you already identify the things which take a long execution time?
- Check if you can outsource longer running parts from the init process (e.g. Processes where the result is only needed in later views and thus might be loaded when you switch to that view)
If this does not help, there is a workaround but that takes some effort.