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

IAS FileSelector Upload Action

Solved846 views18th July 2024interactive automation script
4
German Ballesteros [SLC] [DevOps Member]565 14th December 2023 1 Comment

I created an IAS that uses the FileSelector class. I want to use the Upload button that contains that class to trigger the import action but I checked in the documentation and didn't find a listener/action for that class. Is there a way to do that (reuse the upload button to execute the import action)? Using another button won't be useful for user interaction as the Upload button is a bit confusing.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 1st February 2024

Hi German,
Were you able to use the solution Tom proposed? If yes, could you select his answer to indicate that this question has been solved? If no, have you found a different solution in the meantime?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 15th December 2023 1 Comment

Hi German,

I'm not sure if the FileSelector component supports 'WantsOnChange', but if it does, the following class that extends FileSelector might work. The 'FilesUploaded' event should be fired after the user has uploaded a file.

public class FileSelectorWithEvent : FileSelector
{
public FileSelectorWithEvent()
{
BlockDefinition.WantsOnChange = true;
}

public event EventHandler<EventArgs> FilesUploaded;

protected override void LoadResult(UIResults uiResults)
{
base.LoadResult(uiResults);

if (UploadedFilePaths.Any())
{
FilesUploaded?.Invoke(this, EventArgs.Empty);
}
}
}

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2024
German Ballesteros [SLC] [DevOps Member] commented 1st February 2024

FileSelector does not support actions. For now, we are using another button to execute the import action.

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