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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

GQI – How to create an array of ElementInfoEventMessage to save all the elements?

Solved634 views27th November 2023
0
Gina Douglas [DevOps Member]134 17th November 2023 2 Comments

I'm creating a GQI to display a table in low code app with some specific elements data from my DMA, which is why I am trying to get them all and filter them by name.

To get all the elements I'm using the next lines:

var requestElementsMessage = new GetInfoMessage(DMA_ID, InfoType.ElementInfo);
ElementInfoEventMessage response = _dms.SendMessage(requestElementsMessage) as ElementInfoEventMessage;

When I send this message on the DMS unit test I can see that it is retrieving me a response for each existing element instead one response with all the elements data on it. So I'm not really sure if my variable response it's getting the last ElementInfoEventMessage in the queue or somehow is getting all of them.

How Can I manipulate all the "ElementInfoEventMessage' responses ?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 27th November 2023
Sebastian Ulloa [SLC] [DevOps Advocate] commented 17th November 2023

Hi Gina,
I suppose the default “Get Elements” query does not work for the filtering you are trying to do. But what about using an element property for filtering? You could set a certain property for the elements you want to show in your dashboard.
Or as another option, what about creating a custom operator that creates a column for further filtering? See details here: https://docs.dataminer.services/user-guide/Advanced_Modules/Dashboards_and_Low_Code_Apps/GQI/Extensions/GQI_Custom_Operator.html?q=customoperator

Mostly I would try to avoid SLNet calls, as those can change over versions and it would be safer if you can stick to the default query request.

Gina Douglas [DevOps Member] commented 21st November 2023

Thank you Sebastian for taking the time to respond, I will review this documentation.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Sebastiaan Dumoulein [SLC] [DevOps Enabler]12.73K Posted 18th November 2023 2 Comments

Hi Gina,

Next to the SendMessage method which returns a single DMSMessage you have another method that's called SendMessages (plural) which returns an array of responses (see docs). With this, you can send a single request and receive multiple responses.

However, I am wondering what is missing in GQI so that we can solve this use case without any additional coding. Are we missing a property on the data source or a filtering capability?

Edit:

Native way of using a drop down with elements to filter an element list:

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 27th November 2023
Gina Douglas [DevOps Member] commented 21st November 2023

Hey Sebastiaan, thank you so much for you answer it really helped me. My GQI is working now.

About the filtering, I could’ve used GetElementByNameMessage() to filter a specific element, but in my case I have a dropdown button that returns me a string and I use it to find the elements that contain this string in their name, that’s why I had to add a couple more lines. I’m not really sure if there is a better way to do it.

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 26th November 2023

For completeness, I’ve updated my answer to include the native way of handling the use case you describe. Your approach is still valid though!

You are viewing 1 out of 1 answers, click here to view all answers.
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

Recent questions

Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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