I have an Automation Script triggered by a correlation on a critical alarm. After it runs headless, I want operators to see a visual notice inside a DataMiner Cube View .
I tried a simple popup:
var ui = new UIBuilder { Title = "Info", RequireResponse = false };
ui.AppendBlock(new UIBlockDefinition { Type = UIBlockType.StaticText, Text = "Switch executed." });
engine.ShowUI(ui);
But when launched by correlation it fails with:
Error launching script: interaction is required to execute this script
Question: Is there a supported way to display a popup/toast/banner directly in a Cube View when the script is triggered by correlation? If yes, how can this be done?
Hi Daniel,
If you would like to show a pop-up and let the user interact with it, the approach with an interactive script and the 'FindInteractiveClient' that Ive suggests would be the way to go.
If you however would just like to show a pop-up message, you can use the 'BroadCastPopupRequestMessage' SLNet message. With this, you can have a popup-up that can be configured with a title, message and recipients (empty if it should pop up for everyone). More info can be found here: https://docs.dataminer.services/release-notes/General/General_Main_Release_10.0/General_Main_Release_10.0.0_new_features_2.html#all-cube-clients-will-now-display-broadcast-popups-sent-from-qactions-automation-scripts-etc-id-21733id-21928id-22089