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
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Getting list of protocols in system on the low code app

Solved1.13K views17th November 2023
3
Apurva Tandon [DevOps Advocate]1.66K 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
2
Wout Mahieu [SLC] [DevOps Catalyst]8.76K 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
You are viewing 1 out of 3 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin