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

Scripting a certain function for a UIBlock Button in a C# Automation Script

Solved423 views23rd April 2025automation scipt C++ Cube UIBlock Button uiblockdefinition
1
Satrap Shojaie [DevOps Member]54 6th November 2024 1 Comment

Hello!

Is there a way to program a UIBlock Button in an Interactive Automation Script to run a certain code when pressed?

The intention is to avoid the uiResult.WasButtonPressed("destVar") way which requires a Do...While or if approach; so that the button can do what it's asked to while the main Async Task script is running.

Satrap Shojaie [DevOps Member] Selected answer as best 23rd April 2025
Marieke Goethals [SLC] [DevOps Catalyst] commented 18th April 2025

I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Jarno Lernou [SLC] [DevOps Enabler]5.03K Posted 6th November 2024 2 Comments

Hi Satrap,

The easiest way to get started with building an interactive Automation Scripts (IAS) is consuming the Interactive Automation Script Toolkit | DataMiner Docs.

You'll find quite some good content to get your started:

  • Getting started with the IAS Toolkit | DataMiner Docs
    • links to KATA: Kata #10: Create a simple interactive script - DataMiner Dojo
  • Blog Post on DOJO: Available now: Interactive Automation script example package - DataMiner Dojo
    • Example on Catalog
    • Source Code: SkylineCommunications/SLC-AS-Example_InteractiveAutomationScriptToolkit: Contains examples of interactive automation scripts that use the InteractiveAutomationScriptToolkit NuGet package.

All links provided are giving you information on how to do this, but it comes down to introducing a Button and adding an event handler to it.

Kind Regards,

Jarno

Satrap Shojaie [DevOps Member] Selected answer as best 23rd April 2025
Satrap Shojaie [DevOps Member] commented 6th November 2024

Thanks a lot! If I’ve designed my automation script in the old fashion way of UIBLOCKDEFINITION, UIBUILDER and …, will there also be a way to accomplish this?

Jarno Lernou [SLC] [DevOps Enabler] commented 6th November 2024

Nowadays, we highly recommended using the interactive toolkit, but if you insist on using the raw available features, it is also possible although a little bit more complex. I would recommend you to watch the following video, where my colleague is showing how we used to develop interactive automation scripts. Interactive automation using C# – DataMiner Dojo (https://community.dataminer.services/courses/dataminer-automation/lessons/interaction-automation-using-c/)

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