Hi, Dojo community!
I'm quite new to C# so please excuse me if this is obvious.
This is my code, I want an information message in the DataMiner alarm console:
namespace testing
{
using System.Linq;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Net.Apps.UserDefinableApis;
using Skyline.DataMiner.Net.Apps.UserDefinableApis.Actions;
/// <summary>
/// Represents a DataMiner Automation script.
/// </summary>
public class Script
{
/// <summary>
/// The script entry point.
/// </summary>
/// <param name="engine">Link with SLAutomation process.</param>
public void Run(IEngine engine)
{
engine.SetFlag(RunTimeFlags.NoCheckingSets);
engine.GenerateInformation("Information Text");
}}}
There are no syntax errors; when I press validate, it says there are 0 errors.
But when I press execute it says it's successful but nothing happens. Can anyone explain why and suggest what I can do differently?
Are you sure you are searching for that information event in the correct alarm tab?
Thank you!!
Hi Amber,
The GenerateInformation method prints the message in the information event console and therefore you won't see anything different in the execute dialog than the script has finished.
Could you please check in the information console?
Thanks!!
I see that this question has been inactive for some time. Do you still need assistance with this? If not, could you select the best answer (using the ✓ icon) to indicate that the question is resolved?