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
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Executing Generic Code QAction from another QAction

Solved362 views19th June 2025precompile QAction
4
Sam Stump [DevOps Advocate]616 20th December 2024 0 Comments

I watched this training video on QActions

I am trying to replicate the Generic Code function, but it doesn’t work trying to call my Generic Code from another QAction with the error: “QAction_5005.cs(110,32): error CS1061: ‘SLProtocol’ does not contain a definition for ‘LookupISI’ and no accessible extension method ‘LookupISI’ accepting a first argument of type ‘SLProtocol’ could be found (are you missing a using directive or an assembly reference?)”

I cannot see where I have strayed from the video and failing to find the right documentation to help me.

This is my generic code:

This is the QAction I call it from

This is where I call it with the DIS Validator error:

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th June 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Pedro Debevere [SLC] [DevOps Enabler]1.95K Posted 20th December 2024 0 Comments

Hi Sam,

When defining an extension method, the “this” keyword should be put in front of the frist argument (public static string LookupISI(this SLProtocolExt, int id)

Side note: If you are working solution-based (i.e., the protocol you’re working in is a VS solution and not a plain XML file), you’ll need to add a project reference in the project where you use the extension method to the project/QAction that defines this extension method (DIS will automatically add the dllImport attribute when creating an XML out of the solution). If you are working XML-based, then the dllImport attribute as in the screenshot looks OK.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th June 2025
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