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
    • 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
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

DOM Attachments in IAS

Solved71 views23 hours agoattachment domhelper IAS LCA
1
Felix Wesemeier [DevOps Catalyst]2.03K 1 day ago 0 Comments

Hi Dojo community,

I would like to store some attachments within a DOM instance like mentioned in the docs of the DOM helper class.

I was thinking about using FileSelector and DownloadButton to up- and download attachements.

But when looking for a method inside these components, it looks like they are only designed to keep files locally.

How to handle DOM attachments directly in an interactive automation script without using the local disk?

Thanks in advance,

Felix

Felix Wesemeier [DevOps Catalyst] Selected answer as best 23 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Wouter Van Robays [SLC] [DevOps Enabler]1.19K Posted 24 hours ago 3 Comments

Hi Felix,

Out of the box you indeed won't be able to upload or download a DOM instance attachment directly. But this should work using some workarounds.

You could read out the file in your script after it's uploaded to the FileSelector, and then upload it as an attachment. Once it's uploaded, you can delete that file.

For downloading, you could create a regular button, not a DownloadButton, once it's pressed, you get the attachment from the DomHelper and save it to a temporary file. You then create a DownloadButton with the config option 'StartDownloadImmediately' set to true, which will start the download immediately. And when the script is closed, some cleanup will have to make sure the temporary file is deleted again.

This will probably be a bit tricky to set all up, let me know if you need some more help or if something is not clear!

Felix Wesemeier [DevOps Catalyst] Selected answer as best 23 hours ago
Felix Wesemeier [DevOps Catalyst] commented 24 hours ago

Hi Wouter,
Thanks for the explanation.
It's just as I feared :/

You mentioned creating a regular button and then a separate DownloadButton.
That sounds not very user-friendly.
Any idea how to implement it with just one button to press?
Or do we not even have to press the DownloadButton and it will start automatically after pressing the regular button?

Wouter Van Robays [SLC] [DevOps Enabler] commented 23 hours ago

You can set the DownloadButton component to immediately start the download without the need of pressing it. So when a user clicks the regular button, you can make the creation of the DownloadButton conditional, so that it only gets created when the user would click the regular button. Which would disable the regular button, and create the DownloadButton which starts the download without the need to click it again.

Felix Wesemeier [DevOps Catalyst] commented 23 hours ago

Thanks, then I'll give it a try

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