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
    • 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
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

QAction triggered through automation script

Solved1.10K views4th July 2023automation scipt C++
2
Amer Hodzic [DevOps Member]774 14th June 2023 0 Comments

Hi Dojo,

I am trying to write a script and hit a wall.

I want to trigger a QAction using a C# script I made and so far I cannot figure it out atm.

Any help on this would be much appriecated

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 4th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
6
João Severino [SLC] [DevOps Catalyst]13.02K Posted 14th June 2023 2 Comments

Hi,

QActions cannot be triggered by an automation script, at least not directly.

QActions have a trigger associated with them in the XML side of the connector and what you could do is to make a set on a parameter and use that parameter as the trigger for the QAction you want to execute.

This could be something like a button or a “regular” parameter if you want to use it as well to pass extra information to the QAction.

*EDIT*
Example

<Params>
<Param id=”1″>
<Name>MyParameter</Name>
<Description>My Parameter</Description>
<Display>
<RTDisplay>true</RTDisplay>
<Positions>
<Position>
<Page>General</Page>
<Column>0</Column>
<Row>0</Row>
</Position>
</Positions>
</Display>
<Type>write</Type>
<Measurement>
<Type width=”110″>button</Type>
<Discreets>
<Discreet>
<Display>Run</Display>
<Value>1</Value>
</Discreet>
</Discreets>
</Measurement>
</Param>
</Params>

<QActions>
<QAction id=”1″ name=”My QAction” encoding=”csharp” triggers=”1″>
  …
</QAction>
</QActions>

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 4th July 2023
Amer Hodzic [DevOps Member] commented 14th June 2023

Hi Joao,

That is unfortunate.

I have tried to set but does not work in this case.

is there anyway to get the SLProtocol for a specific ELement as that would help me the most

João Severino [SLC] [DevOps Catalyst] commented 14th June 2023

Hi Amer,
Unfortunately, that is not possible as you mention but it definitely should work with a parameter set
Can you confirm for me how you have your code currently set up?
You should have 1 parameter defined in your protocol xml and a QAction triggering on it (see example in my edit on the original answer)

2
Philip Argent [DevOps Enabler]579 Posted 14th June 2023 0 Comments

Hi,

I asked the same question a while ago, with the same answer.

I ended up adding a dummy parameter that triggered the QAction

<Param id=”9″>
<Name>ExternalTrigger</Name>
<Description>External Trigger</Description>
<Type>dummy</Type>
</Param>

and set that parameter to a value of 1 from the automation script

element.SetParameter(externalTrigger, 1);

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