Is it possible for a user to manually refresh of a visualization page in Cube?
Hi,
we are now facing the same requirement.
We have a service with alarm state and data of assigned elements being used on shapes in a visual, that is linked to this service. This visual is shown at an operator workplace in full-screen mode as default workspace. So they always see this visual during normal operations to monitor the systems in their environment.
In addition there is an automation script, that replaces elements assigned to this service. When this script is executed the element data linked to the shapes is not automatically updated in the visual (e.g. the element name or the element name shown in the default tooltip of the shape). The data of the replaced element is still shown even though the service has the new element assigned by the script. Only after reloading the view we see the right data on the visual.
So far at the end of the automation script a pop-up message has been added, that informs the operator to reload the service visual.They would need to leave the full screen mode, close the tab and open the right tab they used before manually.
A more elegant approach would be to have a reload button shape on the visual itself, that would be shown after the automation script has run. We could set a variable from the automation script and use this in a show condition for this reload button. Clicking on the button shape would execute a action to reload the view.
What is not clear is how we can configure the reload button shape data to do this. The only workarounds I could think of would be to
- use the reload button to execute a automation script, that closes the current tab and opens the same view again in full screen mode. The current view name could be passed to the automation script for this.