Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Getting list of protocols in system on the low code app

Solved1.08K views17th November 2023
3
Apurva Tandon [DevOps Advocate]1.64K 16th November 2023 0 Comments

How can I get the list of all protocols in c# and show them in the low code app in dropdown as adhoc-data source?

As in GQI I cannot see any way like engine.GetUserConnection().GetProtocols?

OR

I can see I can get protocols all from Low code app directly, but how can I adjust to bring only names from Query?

Apurva Tandon [DevOps Advocate] Selected answer as best 17th November 2023

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Tom Waterbley [SLC] [DevOps Catalyst]8.93K Posted 17th November 2023 0 Comments

Hi Apurva,

It’s indeed currently not very straightforward to use the DMS classes in a GQI data source. The trick is to create a class that implements the ICommunication interface. This can be found here.

The ‘GqiDmsConnection’ class can then be used as follows:

public OnInitOutputArgs OnInit(OnInitInputArgs args)
{
var connection = new GqiDmsConnection(args.DMS);
var dms = DmsFactory.CreateDms(connection);

var protocols = dms.GetProtocols();
…

return new OnInitOutputArgs();
}

Apurva Tandon [DevOps Advocate] Selected answer as best 17th November 2023
2
Wout Mahieu [SLC] [DevOps Catalyst]8.09K Posted 17th November 2023 0 Comments

Hi Apurva,

You could leverage the DMS callback that allows you to send any SLNet message (see docs). This callback can be used to retrieve all elements using the  ‘GetLiteElementInfo’ message. These ‘LiteElementInfoEvent’ responses can then be used to get a list of protocols from them. (This is the way used by our dashboards)

private HashSet<string> GetProtocols()
{
var message = new GetLiteElementInfo()
{
ExcludeSubViews = false,
ViewID = -1,
IncludeHidden = false,
IncludePaused = true,
IncludeStopped = true
};
var elementInfos = _dms.SendMessages(message).OfType<LiteElementInfoEvent>();

var protocols = new HashSet<string>();
foreach(var elementInfo in elementInfos)
{
if (protocols.Contains(elementInfo.Protocol)) continue;
protocols.Add(elementInfo.Protocol);
}

return protocols;
}

My example only retrieves the protocol names, but you can also get the protocol type, protocol version, … from these responses.

The retrieved protocols can then be returned as rows by your ad hoc source (see docs).

An other option is to use the same callback with an ‘GetInfoMessage’ to retrieve all protocols.

Wout Mahieu [SLC] [DevOps Catalyst] Answered question 17th November 2023
2
Jarno Lernou [SLC] [DevOps Enabler]5.03K Posted 16th November 2023 1 Comment

Hi Apurva,

Nice to meet you!

This is actually built-in functionality that you can use right away. Simply drag and drop the complete ‘Protocols’ data onto your Dashboard or Low Code App.

Kind Regards,
Jarno

Apurva Tandon [DevOps Advocate] Edited comment 16th November 2023
Apurva Tandon [DevOps Advocate] commented 16th November 2023

Hi, thanks
I know this but I want to get in automation script in GQI so wanted to ask how can I use engine.GetUserConnection().Get Protocol things in GQI as dms doesn’t have such thing. I want to use this as adhoc data source

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs