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
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Handle row triggers for multiple tables

318 views2nd January 2025
7
David Crome269 2nd January 2025 0 Comments

Hi Dojo,

we will add the same column in multiple tables and do not want to write the same row trigger function for every table. Is it possible to get the id of the table of the row which was changed? Currently I only have one trigger function for a specific table and using a hardcoded table id, but if I want to use it for multiple tables the trigger function needs to be more generic. Of course I can check if any table has the rowKey, but maybe there is a better way or another way is best practice like writing a trigger function per table.

Thanks,
David

José Silva [SLC] [DevOps Catalyst] Answered question 2nd January 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
José Silva [SLC] [DevOps Catalyst]1.40K Posted 2nd January 2025 2 Comments

Hi David,

You can implement a more generic solution by structuring your tables with specific offsets, allowing you to identify the corresponding table based on the trigger parameter.

For example:

Table 1: PID 1000
Table 2: PID 1500
Table 3: PID 2000
(…)

If the QA trigger falls between 1001 and 1499, it belongs to Table 1000. Otherwise, it would belong to Table 1500, and so on.

This approach enables you to simplify the trigger logic while keeping it flexible for multiple tables.

Kind regards

José Silva [SLC] [DevOps Catalyst] Posted new comment 7th January 2025
David Crome commented 6th January 2025

Hi José,

thanks for your answer.

But this is highly dependent that the IDs of the tables do not change. Of course they should not change, but why isn't it possible to get the parent id where the column/parameter is placed in?

José Silva [SLC] [DevOps Catalyst] commented 7th January 2025

Hi David,
It’s possible to retrieve the columns from a specific table, but not the other way around. This is because when you define a parameter, it’s not inherently linked to a table. Instead, the table is where you establish the link to a standalone parameter.

This is just how the process is designed.
Kind regards,

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