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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Use case for protocol.GetColumns () method

64 views2 days agodevelopment Documentation GetColumns
1
Paul Lee [DevOps Member]653 3 days ago 0 Comments

Hi,

Is it possible to be provided with a use case for below method?

public static object[] GetColumns(this SLProtocol protocol, int tablePid, IEnumerable<uint> columnsIdx)

https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Utils.Protocol.Extension.ProtocolExtension.GetColumns.html?q=getcolumns

Recently I was advised to use more of GetColumns and SetColumns calls to avoid using row gets/sets as apparently they help with the connector performance.

However, the documentation from the above link does not seem to have any examples which makes me a bit hard to understand the method.

if I had List<QActionTableRows> and went through each item by using a foreach loop to save each item to another class e.g. Class A, and add it to a List<Class A>, how can I convert it to use the GetColumns method? It's the return type structure that I'm not quite sure about.

E.g. if I have following code,

List<uint> columns = new List<uint>()
{0,1.2.3.4.5.6.7};

var getColumns = protocol.GetColumns(testQActionTable.TableId, columns);

Is it possible to loop through each 'row' and adds its property to the 'Class A'?

Pedro Debevere [SLC] [DevOps Enabler] Answered question 2 days ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Pedro Debevere [SLC] [DevOps Enabler]2.02K Posted 2 days ago 0 Comments

Hi Paul,

The return type is of type object[] where each item in the array is again of type object[] which holds the values of one of the retrieved columns. This method basically executes the following notify call NT_GET_TABLE_COLUMNS which provides an example of what is returned. To loop through the rows, you'll have to create a loop that iterates over e.g. the number of items in the first column and then in every iteration take the corresponding item from the other column objects.

Pedro Debevere [SLC] [DevOps Enabler] Answered question 2 days ago
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin