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

Easy way for an Are you sure dialog in automation script

Solved1.23K views27th June 2022automation scripts dialog
2
Gerwin van der Kamp [DevOps Enabler]2.91K 24th June 2022 0 Comments

Hi,

is there an easy to get an Are you sure you want to continue message box with an automation script without building an complete ui with the uibuilder?

https://docs.dataminer.services/user-guide/Advanced_Modules/Automation/Using_CSharp/Building_interactive_Automation_scripts_with_CSharp.html

Joey Vanhalst [SLC] [DevOps Advocate] Answered question 27th June 2022

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Joey Vanhalst [SLC] [DevOps Advocate]1.80K Posted 27th June 2022 1 Comment

You could use the following method to show a message box (with a custom message in this case):

private static bool Confirm(IEngine engine, string message)
{
var uiBuilder = new UIBuilder();

uiBuilder.Append(message);
uiBuilder.AppendButton(“okBtn”, “OK”);
uiBuilder.AppendButton(“cancelBtn”, “Cancel”);

var uiResults = engine.ShowUI(uiBuilder);
return uiResults.WasButtonPressed(“okBtn”);
}

This will then return true/false depending if the user confirmed or not.

Also note that this does imply that the script is executed by a user. If not, you’ll need to use “FindInteractiveClient” so a user can first attach to the script.

Joey Vanhalst [SLC] [DevOps Advocate] Answered question 27th June 2022
Gerwin van der Kamp commented 27th June 2022

I was afread it would be indeed using the UIbuilder, but this seems simple enough 🙂

0
Miguel Obregon [SLC] [DevOps Catalyst]18.57K Posted 24th June 2022 1 Comment

Hi Gerwin,

I am not sure if it will help, but a possible option is to use the action ‘User interaction’ (DataMiner Docs – User Interaction):

Miguel Obregon [SLC] [DevOps Catalyst] Answered question 24th June 2022
Gerwin van der Kamp commented 24th June 2022

Might be an option, the rest is c# code though, but maybe i can use this. I’ll have look.

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