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
    • 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
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Confirmation before launching a script in LCA

80 views3 days agoautomation scripts confirmation pop up low code app
0
Harinee G [DevOps Member]176 3 days ago 0 Comments

In my low code app, there is a table which contains a list of services and I have added a button "Destroy" which is configured to launch an automation script to delete the service. It gets executed directly when the button is clicked but I want to have a confirmation like an "Y/N" before its executed.

Also my script is not an interactive script which is why ShowUI method is also not supporting. Is there any equivalent method for a normal automation script? Or any way to directly configure this in LCA rather than in the script?

Please advise.

Wout Mahieu [SLC] [DevOps Catalyst] Answered question 3 days ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wout Mahieu [SLC] [DevOps Catalyst]9.48K Posted 3 days ago 0 Comments

Hi Harinee,

It is not possible to configure this in the LCA itself. I would suggest creating a IAS script that shows a confirmation dialog to run the script itself. I have created a small example that shows a dialog and runs the desired script "scriptName" when the Ok button is clicked.

namespace ConfirmStartScript
{
using System;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Utils.InteractiveAutomationScript.Dialogs;

/// <summary>
/// DataMiner Script Class.
/// </summary>
public class Script
{
public void Run(Engine engine)
{
//do not remove this
//".ShowUI("

try
{
OkCancelDialog dialog = new OkCancelDialog(engine, "Are you sure you want to execute this script?");
dialog.OkButton.Pressed += (sender, args) => {
var subscriptInfo = engine.PrepareSubScript("scriptName");
subscriptInfo.Synchronous = true;
subscriptInfo.StartScript();
};
dialog.Show();
}
catch (Exception e)
{
engine.ExitFail("Something went wrong: " + e);
}
}
}
}

Wout Mahieu [SLC] [DevOps Catalyst] Answered question 3 days ago
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