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

DOM Action with interactive and non interactive path

Solved503 views30th September 2024DOM DOM Actions
0
Gerwin van der Kamp [DevOps Enabler]2.91K 12th June 2024 2 Comments

Hi,

I've got a Dom action script that should handle most of the paths without interaction. However when it runs into an issue with validation for instance it should throw an popup to the user explaining what is wrong.

How can i configure/execute this action?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th September 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 27th August 2024

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?

Marieke Goethals [SLC] [DevOps Catalyst] commented 30th September 2024

As this question has now been inactive for a long time, I will close it. If you still want more information about this, could you post a new question?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.84K Posted 14th June 2024 0 Comments

Hi Gerwin,

If I understood the question correctly, you have a validation DOM action script that needs to show an interactive UI when there is an issue. But, you would also like to trigger this action in another script using the DOM API? (In which case, you don't need the interactive window, but just some output stating whether the validation passed or not)

Unfortunately, you can only have an action that is always interactive or never interactive.

Workaround 1: Use a standalone validation script
You could have a validation script that outputs the result using the 'Script Output' feature and call that one in the other script & DOM action script.

Workaround 2: Use two actions with one script and the 'IsInteractive' field
If you however want to use DOM actions exclusively for the validation, you could create a script with the DOM action entry point. Do the validation and if there is an error use the 'engine.IsInteractive' field to check if you need to add the errors to the script output, or show a UI. You can then create two DOM actions on your DomBehaviorDefinition, one with the 'IsInteractive' true and one with it set to false. The button can then be linked to the interactive action, and your scripts can trigger the non-interactive action. See this screenshot of an example that does seem to work:

The 'TryValidate' method accepts the DOM instance ID, retrieves the DOM instance and checks if all fields are correct. If there is an issue, it will return false and populate the 'errorMessage' with details on what is wrong. We then check if the script is interactive. If not, we just add the error to the 'error' key in the script output. If it is interactive, we build a UI with the error and show it. Do note that this example uses the UIBuilder to keep it short, but we do recommend using the IAS toolkit to build a nice UI.

Let me know if something would not be clear, or if I misunderstood your issue.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th September 2024
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