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

Automation Script – Table parameter

Solved480 views25th September 2024
3
Stefan Schedletzky [DevOps Enabler]2.06K 25th September 2024 0 Comments

Hi Dojo,

I’m working on a script for BT probes to find inconsistencies in the tables.
I’m getting the elements by engine.FindElementsByProtocol and afterwards I’m doing an foreach on this array.

string[] tableKeysEthernetAvailableStreams = e.GetTableDisplayKeys(4000);
Here I have now all Display Keys from my table. Now I want to check if this Key is “Joined”.

The ID of this parameter is 4015, I tried:
e.GetParameterByPrimaryKey(4015, tableName)
e.GetParameterDisplayByPrimaryKey(4015, tableName)
Also tried 14 ( <ColumnOption idx=”14″ pid=”4015″ type=”retrieved” options=”” />)

How can I get the correct cell in the script?

Stefan Schedletzky [DevOps Enabler] Selected answer as best 25th September 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
João Severino [SLC] [DevOps Catalyst]13.07K Posted 25th September 2024 3 Comments

Hi Stefan,

Could you clarify one thing for me, is the variable tableName the actual table name or does it represent each row’s key?

The GetParameterByPrimaryKey expects a primary key or a display key as the argument so you will need to iterate over the tableKeysEthernetAvailableStreams string array to get the info you are after.

Stefan Schedletzky [DevOps Enabler] Selected answer as best 25th September 2024
Stefan Schedletzky [DevOps Enabler] commented 25th September 2024

Hi João,
this is how I use tableName:
foreach (string tableName in tableKeysEthernetAvailableStreams)

João Severino [SLC] [DevOps Catalyst] commented 25th September 2024

That looks correct, I just wanted to confirm due to the variable name
But it looks strange that it does not work.

Could you check with the method GetParameter (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetParameter.html#Skyline_DataMiner_Automation_Element_GetParameter_System_Int32_System_String_) or GetParameterDisplay (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetParameterDisplay.html#Skyline_DataMiner_Automation_Element_GetParameterDisplay_System_Int32_System_String_) if you haven’t already?

Alternatively, could you test with using GetTablePrimaryKeys (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetTablePrimaryKeys.html) instead of GetTableDisplayKeys (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetTableDisplayKeys.html)

Stefan Schedletzky [DevOps Enabler] commented 25th September 2024

GetParameter is working, many thanks! Script is working!

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