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
    • 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
      • 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)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Rertieve a parameter from another element in a protocol C# QAction

123 views2nd December 2025
1
Dominique Bodart [DevOps Member]783 2nd December 2025 0 Comments

In a protocol, I need to retrieve the value of a parameter from another element than the one where the QAction is written. I try to use something as follow which works in an Automation script but using a "GetParameter" instead of SetParameter:

Element element = engine.FindElement("RFSW GS02 SA J5");
if (element != null) {
//Set the connectedInput value (parameter id 1012) to 6 (port number)
pos = Convert.ToString(element.GetParameter(1012));
}

But if I use this script in the QAction of the driver I am writing, it generates an error, saying there is no "Element" class. So I guess there is something missing. Is there any solution?

Thank you,

João Severino [SLC] [DevOps Catalyst] Answered question 2nd December 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
João Severino [SLC] [DevOps Catalyst]14.26K Posted 2nd December 2025 5 Comments

Hi Dominique,

The Element class is specific to the automation scripts (see reference), an alternative you can use is the IDmsElement object from the Class Library and your code would look something like

var idms = protocol.GetDms();

var element = idms.GetElement("RFSW GS02 SA J5");

if (element != null) {
//Set the connectedInput value (parameter id 1012) to 6 (port number)
var posParameter = element.GetStandaloneParameter<string>(1012));
var pos = posParameter.GetValue();
}

To learn more about the Class Library, you can check this docs page: About the class library | DataMiner Docs

Hope this can help

Dominique Bodart [DevOps Member] Posted new comment 6 days ago
Dominique Bodart [DevOps Member] commented 2nd December 2025

Thank you João,

Nearly there, I thing. The following script still returns with one error on first line:
var idms = protocol.GetDms();
var element = idms.GetElement("RFSW GS02 SA J5");
if (element != null)
{
var posParameter = element.GetStandaloneParameter<string>(1012);
pos = posParameter.GetValue();
}

Error: CS1061 'SLProtocol' does not contain a definition for 'GetDms'

Do I need to add some library or something like that?

João Severino [SLC] [DevOps Catalyst] commented 2nd December 2025

Yes, you need to install the NuGet from https://www.nuget.org/packages/Skyline.DataMiner.Core.DataMinerSystem.Protocol

Dominique Bodart [DevOps Member] commented 7 days ago

Noted. But if there is a Dataminer update later on, will it take into account the update of the NuGet package, if needed?

João Severino [SLC] [DevOps Catalyst] commented 7 days ago

We try to make sure those NuGets are always forward-compatible and that DataMiner does not introduce breaking changes to those.
However, upgrading your DataMiner will not automatically upgrade the NuGets, that remains a manual action.

Dominique Bodart [DevOps Member] commented 6 days ago

Hi João,
Understood. Lany thanks for your kind support 🙂

You are viewing 1 out of 1 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