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

Multiple Live Updates on a Single AdHoc DataSource

Solved403 views20th May 2025Adhoc data source live updates subscriptions
0
German Ballesteros [SLC] [DevOps Member]565 6th December 2024 0 Comments

Hi,

I’m currently working on implement live subscriptions in an AdHoc Data Source script. I need live updates on 4 different sites: 1 DOM Instance, 2 elements and 1 service. I implemented a code using multiple watchers per site but one of the element subscriptions is the only that is working. This is the OnStartUpdate code:

And this is the _OnChange method (both ParameterWatcher variables have the same code):

Is there another way I could implement to have that multiple subscriptions? Do I must use one watcher?

German Ballesteros [SLC] [DevOps Member] Selected answer as best 20th May 2025

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Carlos Matheus [SLC] [DevOps Advocate]318 Posted 20th May 2025 0 Comments

Hi German,

Code seems fine as Tom mentioned but I would recommend putting together all watchers of the same type, for example in your case, you would only need one “ParameterWatcher” instead of 2, you can add as many elements as you need having a list of SubscriptionFilterParameter where you can add both of your filters and consolidate them in a single ParameterWatcher.

something like this

German Ballesteros [SLC] [DevOps Member] Selected answer as best 20th May 2025
2
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 6th December 2024 1 Comment

Hi German,

Your code seems fine at first sight. Multiple subscriptions/watchers is supported. The source of the changes for the realtime updates in an ad-hoc data source actially doesn’t matter.

How does the ParameterWatcher class look like? Maybe one instance is overwriting the subscriptions of another. To avoid this you could let each instance use it’s own subscription set ID, with a random string as key.

German Ballesteros [SLC] [DevOps Member] Posted new comment 16th December 2024
German Ballesteros [SLC] [DevOps Member] commented 16th December 2024

Hi Tom,
I tried changing the IDs but still having the issue. Only one of the 3 subscription I have is working. We also tried using the same watcher for the parameter classes and doesn't work too. Do you have another suggestions for that?

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