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,
Since your script is running headless, you’ll need to define which user should receive the pop-up.
You can accomplish this using the FindInteractiveClient method (for more details, see here).