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

Rename discreet display value in Visio.

Solved1.61K views17th March 2021Discreet property Visio
2
Steve Purcell [SLC] [DevOps Advocate]1.71K 21st January 2021 0 Comments

Is there a better way to rename discreet display values in Visio?

<Discreets>

<Discreet>

<Display>Off</Display>

<Value>0</Value>

</Discreet>

<Discreet>

<Display>On</Display>

<Value>1</Value>

</Discreet>

</Discreets>

The discreet display value is part of the driver.  When the parameter shape is displayed in Visio the discreet display value is presented (i.e. On or Off).  In our case, we needed the display value to be Open or Closed rather than On, Off.  In order to accomplish this we setup custom property values for STOn and STOff (Status On/Off) with the value set to ‘Open’ for On and ‘Close’ for Off.  Then in the Visio shape we used shape data ‘Property’ with a value of ‘ST[param:[this element],402,Interface_1]’ which would then display the property value for STOn (Open) or STOff (Close) depending on discreet returned On or Off.  This seems to be working as needed, however, the property has to be edited with each new device of the same type added.

Our question, is there a better/easier way to perform the renaming of the discreet display value without editing the driver?

Steve Purcell [SLC] [DevOps Advocate] Selected answer as best 17th March 2021

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Miguel Obregon [SLC] [DevOps Catalyst]18.98K Posted 21st January 2021 0 Comments

Hi Steve,

Since you only have two possible discreet values, is it not an option to create two shapes, each one with a conditional shape data pointing to each value? Then, based on the value of the discreet parameter, you can manipulate the corresponding shape. In DataMiner Help you can find the supported actions that can be applied on a shape.

Steve Purcell [SLC] [DevOps Advocate] Selected answer as best 17th March 2021
5
Sebastiaan Dumoulein [SLC] [DevOps Enabler]12.80K Posted 21st January 2021 1 Comment

If it’s just to display a different value on the Visual Overview I suggest using the RegexReplace functionality (see help). With this, you are able to search a text for a regular expression and replace the matches with another piece of text.

Example:

Let’s say we want to use parameter 101 of element 1/2. We can use this value in the Visual Overview using a parameter placeholder:
[Param:1/2,101]

We can use this placeholder in a RegexReplace:
[RegexReplace:On,[Param:1/2,101],Open]

This will return Open if the value is On or return the original string when it’s not which will be Off.

We can now repeat this process once more to also cover Off:
[RegexReplace:Off,[RegexReplace:On,[Param:1/2,101],Open],Closed]

You can set the text of a shape to the above syntax to see the resolved value.

Steve Purcell [SLC] [DevOps Advocate] Edited comment 21st January 2021
Steve Purcell [SLC] [DevOps Advocate] commented 21st January 2021

Thanks Sebastiaan, that is a slick solution which seems to work great.

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