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

Pop-up window on Low Code App

Solved691 views17th July 2024
5
Nejra Velic [SLC] [DevOps Member]266 16th July 2024 0 Comments

Hello Dojo,

I am currently working on a project where I created a Low Code App that runs an Interactive Automation Script with the click of a button.

On the screen that appears, the user needs to fill in some parameters and then click the ‘Apply’ button. After clicking the button, the script executes and applies the required action.

However, the customer would like to see a pop-up window after clicking the ‘Apply’ button. I am unsure if this is possible. I am aware of a notification that appears after execution, which can indicate that the action has been taken, but this happens post-execution.

Ideally, after the user selects all the parameters and clicks ‘Apply’, a pop-up would appear confirming their selections and asking, “Are you sure you want to apply?” Only when confirming on ‘Yes’ the action will take place.

I hope someone can help with this.

Thank you in advance. 🙂

Nejra Velic [SLC] [DevOps Member] Selected answer as best 17th July 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
5
Blake Smethers [SLC] [DevOps Advocate]980 Posted 16th July 2024 1 Comment

Hey Nejra, the simplest way to accomplish this is by using another IAS within the one you’re already using this. Make a simple “ConfirmDialog” with just a cancel/confirm button and display some text. I made a sample below:

public class ConfirmDialog : Dialog
{
public ConfirmDialog(IEngine engine, string message) : base(engine)
{
// Init widgets
Label = new Label(message);

// Define layout
AddWidget(Label, 0, 0);
AddWidget(CancelButton, 1, 0);
AddWidget(ConfirmButton, 1, 1);
}

public Button CancelButton { get; } = new Button(“Cancel”) { Width = 100 };

public Button ConfirmButton { get; } = new Button(“Confirm”) { Width = 100 };

private Label Label { get; set; }

public static bool ShowMessage(IEngine engine, string message)
{
bool confirmed = false;

try
{
var dialog = new ConfirmDialog(engine, message);
dialog.CancelButton.Pressed += (sender, args) =>
{
confirmed = false;
engine.ExitSuccess(“Close”);
};

dialog.ConfirmButton.Pressed += (sender, args) =>
{
confirmed = true;
engine.ExitSuccess(“Close”);
};

var controller = new InteractiveController(engine);
controller.ShowDialog(dialog);

return confirmed;
}
catch (ScriptAbortException)
{
return confirmed;
}
}
}

This could be called by doing ConfirmDialog.ShowMessage(engine, “Are you sure you want to perform the operation?”) which should then return the boolean of if it was confirmed or not.

Minor note: make sure you’re using the InteractiveAutomationScriptToolkit nuget library.

Nejra Velic [SLC] [DevOps Member] Posted new comment 17th July 2024
Nejra Velic [SLC] [DevOps Member] commented 17th July 2024

Hi Blake, thanks a lot for your help, I will use this solution!

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