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
    • Kanban workshop
    • 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
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

GetPartialTableMessage

Solved1.08K views12th August 2022Automation script
1
Jeroen Geldhof [SLC] [DevOps Enabler]5.09K 11th August 2022 1 Comment

I want to retrieve a filtered set of table entries in an automation script.
Fetching first the whole table and then going through that table doesn’t seem like the best idea, given that DataMiner already has a lot of filter possibilities.

Doing a ‘follow’ I see that a GetPartialTableMessage might be a good method.
Sending a GetPartialTableMessage with following filter

[0000]   sort=1035|DESC|
[0001]  fullFilter=((1011==”Kaleido 192.168.81.138″) AND (1012==”A”) AND (1013==”D”) AND (1014==”15″))

results in a ParameterChangeEventMessage in the Message overview.
I expected something in the reply that would have the indexes, which was  not the case.

I guess I’m not sure how to use this call.
Would you have more experience with this call or do you have a good alternative?

Jeroen Geldhof [SLC] [DevOps Enabler] Selected answer as best 12th August 2022
Jeroen Geldhof [SLC] [DevOps Enabler] commented 11th August 2022

Ok, I think I found how to work with it.
The CellValue contains an array with ParameterValues
In the ParameterValue objects I need to read out the CellValue StringValue

I’ll give it a try in a script

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Ive Herreman [SLC] [DevOps Enabler]13.61K Posted 11th August 2022 0 Comments

Hi Jeroen,

Below you’ll find a sample:

GetPartialTableMessage req = new GetPartialTableMessage(dmaid, eid, table, filters);
ParameterChangeEventMessage data = Engine.SLNet.SendSingleResponseMessage(req) as ParameterChangeEventMessage;

if (data == null || data.NewValue == null || (!data.NewValue.IsArray && !data.NewValue.IsEmpty))
{
// no or invalid data returned
}
else if (data.NewValue.IsEmpty)
{
// empty table
}
else if (data.NewValue.IsArray)
{
// log table
var columns = data.NewValue.ArrayValue;

// iterate data
int rowCount = 0;
if (columns.Length > 1)
rowCount = columns[0].ArrayValue.Length;

for (int idxRow = 0; idxRow < rowCount; idxRow++)
{
try
{
// start of row ‘idxRow’
string column1 = data.NewValue.GetTableCell(idxRow, 0)?.CellValue.GetAsStringValue();
string column7 = data.NewValue.GetTableCell(idxRow, 6)?.CellValue.GetAsStringValue();
}
catch (Exception ex)
{
engine.GenerateInformation(“ERR|Unable to precess row due to ” + ex);
}
}
}

Jeroen Geldhof [SLC] [DevOps Enabler] Selected answer as best 12th August 2022
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