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

TreeControls – Help Understand

Solved688 views17th March 2024QAction SNMP snmp table Tables TreeControl
1
David Merrifield [DevOps Advocate]626 14th March 2024 0 Comments

Hi All,

Want to get a better understanding on how TreeControls exactly work. I’ve managed to get what I want working but not how I expected.

For me to get TreeControls to work I do they following.

  • Create one table to gather all the data (SNMP) for example.
  • Crete a second table that I fill using the data gather from the first table with a QAction

*********************************************************************************

To help me get a better understanding I created the most basic driver. This driver has two tables. Table 100 which has a device name (Primary Key) and a second table 200 with a foreign key column of table 100. First table is updated once on StartUp but second table uses SNMP to gather Task Manager parameters. I have confirmed this is working by displaying the data and by viewing Stream Viewer. I have the Hierarchy/Groups/Timers all set but don’t see the data in the TreeView. I have the TreeControl1 parameter set on Task Manager Tree Page.

Is it not possible to do it this way? Why can’t table 200 (Process Name IDK) be shown in the tree view?

Is it only possible by updating with a QAction?

Ben Vandenberghe [SLC] [DevOps Enabler] Selected answer as best 17th March 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Robbie Demaegdt [SLC] [DevOps Advocate]655 Posted 14th March 2024 2 Comments

Hello,

Your foreignkey column in the Task Manager table is empty, that one should be filled in with the primary key of your first table.

Also on the second table you should have the foreignkey option on the foreignkey column defined like this:

<ColumnOption idx=”1″ pid=”272″ type=”retrieved” options=”;foreignKey=250″ />

Also make sure you have specified the relation between the 2 tables.

https://docs.dataminer.services/develop/schemadoc/Protocol/Protocol.Relations.Relation.html?q=relation

Ben Vandenberghe [SLC] [DevOps Enabler] Selected answer as best 17th March 2024
David Merrifield [DevOps Advocate] commented 16th March 2024

Thank you for your reply. I managed to get this to work once I filled out the foreign key column. Seems so obvious now that you have to fill out this column with a Qaction. I presumed this was filled out automatically with the primary key from table 1 once tables were linked but this is incorrect.

Robbie Demaegdt [SLC] [DevOps Advocate] commented 16th March 2024

Ok great that you got it to work. It’s logical that dataminer can’t fill in this column automatically because if you have more than 1 entry in your first table than in the second table with the foreignkey column is it impossible to know which row has to be linked to a row in the first table. That is why we have to fill it in through code to define which row of the second table is linked to the first one.
Also don’t forget to select the answer as the solution on your question.

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