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
  • Blog
  • 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
    • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Executing Generic Code QAction from another QAction

304 views20th December 2024precompile 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:

Pedro Debevere [SLC] [DevOps Enabler] Answered question 20th December 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Pedro Debevere [SLC] [DevOps Enabler]1.80K 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.

Pedro Debevere [SLC] [DevOps Enabler] Answered question 20th December 2024
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