Hi,
Question 1) I want to know how we can get list of names of all protocols in the automation script?
Question 2) If from low code app we pass the protocol name and the list of table names, so how we can get the table Ids for those table names related with that protocol.
Question 3) From an GQI class like
[GQIMetaData(Name = "Validate Naming Convention")] public class ValidateNamingConventionForDevices : IGQIColumnOperator, IGQIRowOperator{
private readonly GQIColumn _colIsNameValid = new GQIBooleanColumn("Is Name Valid");
public void HandleColumns(GQIEditableHeader header)
{
header.AddColumns(_colIsNameValid);
}
............
private bool IsValidName(string elementName)
{
var engine = new Engine();
var helper = new DomHelper(engine.SendSLNetMessages, "locations");
can we create an object of engine here and then use dom helper to retrieve DOM related data?
Hi Apurva,
Answer for first question:
in your Automation script you need to install following NuGet Package "Skyline.DataMiner.Core.DataMinerSystem.Automation".
Now you can use following code to get all protocols in your dms:
var dms = engine.GetDms();
var listOfProtocols = dms.GetProtocols(); // return ICollection<IDmsProtocol>
var protocolNames = listOfProtocols.Select(protocol => protocol.Name).ToList();
Good answer, let me just add some useful links:
– related info on DataMiner Docs: https://docs.dataminer.services/develop/devguide/ClassLibrary/ClassLibraryIntroduction.
– related NuGet package: https://www.nuget.org/packages/Skyline.DataMiner.Core.DataMinerSystem.Automation