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

Is it possible to call protocol.AddRow on a table with a context menu?

Solved555 views27th August 2024Add Row context menu table
2
Anna Carlsson [DevOps Member]368 30th May 2024 1 Comment

In my driver I have defined a basic table with a context menu to allow the user to add/delete rows to the table.

But I also would like to add rows by calling protocol.AddRow(). When I try this, no row is added. But if I remove the context menu it works.

Are there any limitations/constraints when adding a context menu to a table?

Anna Carlsson [DevOps Member] Selected answer as best 27th August 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 27th August 2024

I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Floris Cockaerts [SLC] [DevOps Advocate]2.43K Posted 30th May 2024 1 Comment

Hi Anna,

The AddRow should work regardless of the context menu.

A context menu is a parameter that elicits some behaviour in DataMiner Cube and triggers a QAction to handle the action. I believe something else is causing a problem in your setup. Would it be possible to share your code in some way (github for example)?

Anna Carlsson [DevOps Member] Selected answer as best 27th August 2024
frans siew [SLC] [DevOps Advocate] commented 31st May 2024

Hi Anna, 

To add on to Floris Answer, a potential problem could be if the key already exist. In that case the AddRow would not work and a SetRow should be used. You could add an if statement to check if the key exist to avoid this potential pitfall.

Sharing the Loggings of the element would be great as well to check if there were any exceptions there

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