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

Append method for Interactive Toolkit

Solved767 views3rd June 2024
0
Aditiben Desai [DevOps Member]372 18th January 2024 2 Comments

Hello,

I am working on UI Interactive toolkit to display different parameters. I want to know is there an append method that I can use incase if there are multiple (key,value) pairs for the same parameter. I have created a dictionary which stores multiple key value pairs , now I want to display all of those values using interactive toolkit. How can I do it?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 3rd June 2024
Ive Herreman [SLC] [DevOps Enabler] commented 19th January 2024

Hi Aditiben,

What UI component would you like to use (a label, dropdown, other)?
Do you want to show all values in one UI component, or display a distinct component for every value?

Aditiben Desai [DevOps Member] commented 19th January 2024

I want to use normal text as sometimes dictionary has only one key,value pair and sometimes its more than one. If thats more than one then i want it to display all key value pairs in different lines as a text.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Tom Waterbley [SLC] [DevOps Catalyst]8.93K Posted 19th January 2024 2 Comments

Hi Aditiben,

To show all values in a dictionary you could use the DropDown component.

  • Create the dropdown control and add it to the UI:

var dropdown = new DropDown();
dropdown.Options = new[] { “Option 1”, “Option 2”, “Option 3” };
dropdown.Selected = “Option 1”;

  • Retrieve the selected option:

string selectedOption = dropdown.Selected;

In the same way you can also use CheckBoxList and RadioButtonList.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 3rd June 2024
Aditiben Desai [DevOps Member] commented 19th January 2024

I want to use normal text as sometimes dictionary has only one (key,value) pair and sometimes its more than one. If thats more than one then i want it to display all key value pairs in different lines as a text.

Tom Waterbley [SLC] [DevOps Catalyst] commented 22nd January 2024

If you want to combine the values in a dictionary and show them as text, you could use the String.Join method as follows:
Dictionary dict;
MyLabel.Text = String.Join(“, “, dict.Select(x => x.Value)); The result is a single string with commas between the values.

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