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

Visio ComboBox: How to add a Clear Value

Solved509 views11th March 2025combobox Visio
2
David Rid [DevOps Enabler]628 28th November 2024 0 Comments

Hello,

I’m building a ComboBox that allows users to select values from a table.

The selected value is passed to a variable, which is used by the element above (blue) to generate a thumbnail link.

However, I’m facing an issue:

I can’t set the ComboBox value to empty. I would like users to have the option to clear the value directly within the ComboBox.

Is it possible to add an unfilled option to the ComboBox? I’d like to avoid introducing a new button to clear the variable of the link.

David Rid [DevOps Enabler] Selected answer as best 11th March 2025

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Toon Casteele [SLC] [DevOps Enabler]7.01K Posted 28th November 2024 1 Comment

After your current setvar, you can add something like “:clear”. This will add another option to your combobox to clear the value. You can then do some magic in a page Execute to set another variable based on a regexreplace of that value. If you then use the variable you define on the page rather than the one in the combobox for your eventual control, it will work the way you want it to.

Execute data on the page: “Set|Variable|Screen1ToUse|[regexreplace:clear,[var:screen1],]|SetTrigger=ValueChanged”

Note I did not test this but now “Screen1ToUse” variable should always hold either empty (when clear is clicked or when the variable is not initialized) or one of the table values you selected. Note that if your table entry contains the value “clear” it will also be replaced in this situation and you might want to reword clear into “<clear>” or something else that won’t occur in your table.

EDIT: Because the SetVar automatically detects table param placeholders and processes them differently than it normally would, we need some extra syntax to make sure the entries are strictly output as ‘:’ separated values.

i.o. [param:4733/1815,301,4200], you directly want to use a table column and then use the interlace to get the right separator. e.g. [interlace:[param:4733/1815,301,4205],|,:].

Now do note that you will lose the functionality of seeing the DisplayColumn and setting the SetColumn with the dropdown. So some more syntax might needed in other places to convert one to the other.

As an alternative of course, you could implement a separate clear button, but I bet you know that already.

David Rid [DevOps Enabler] Selected answer as best 11th March 2025
David Rid [DevOps Enabler] commented 28th November 2024

Thank you very much; this cleared things up for me! Adding the button will be the most sensible solution.

0
David Rid [DevOps Enabler]628 Posted 28th November 2024 1 Comment

After your current setvar, you can add something like “:clear”. This will add another option to your combobox to clear the value.

I tried implementing this, but this is where my issue lies. The only values I see are from the table; “clear” does not appear in the ComboBox.

David Rid [DevOps Enabler] Unselected an answer 11th March 2025
Toon Casteele [SLC] [DevOps Enabler] commented 29th November 2024

Indeed, there is some sugar in the code for QoL implementing of table entries in a dropdown. To avoid having to use an extra placeholder to replace the separator from the param (by default '|') we just check if we have a table entry param in the SetVar. From there on we just fill the combobox with those entries. That complicates the solution a bit but I'll update my answer.

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