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

Behavior or show/hide shape based on element property value when property is empty

Solved165 views25th March 2025Element Property HIDE/SHOW Visio
0
Koen Bouckhout [SLC] [DevOps Advocate]1.28K 24th March 2025 0 Comments

Hi community,

I am working on an element visio file where I need to show or hide a button that launches an automation script based on the contents of an element property ("Operational Status"). The property can have two values ("Available" or "Maintenance") or can be empty (e.g. when a new element is created, the property will not have any value yet).

I want the shape to be shown when the property has value ("Available") but also when the property does not have a value yet.  But so far no luck.

The shape itself is linked to an automation script with an Execute shape data field.  In addition I added the following Show shape data field

So the shape should be shown when the property value is "Available" or when it is empty.

When the value "Available" is populated on the property, the shape is shown as expected. Also when I clear the value from the property, the shape is still shown.  But when I close the element card and re-open it (with the property still empty), the shape is never shown until I populated the property with the correct value.

I also tried an alternative approach by using and adding a Property shape data field in combination with a Hide option.

That works better.  The shape is shown also when opening the element card while the property has no value yet.  But unfortunately then I am loosing the ability to execute a script.  The button is not clickable anymore to launch the script, probably due to the extra Property shape data field on the shape.   So that is not really an option.

I also tried a "Hide" shape data field in combination with te Execute shape data field but that suffers from the same behavior as initially explained (shape not shown when opening the element card while property is empty).

Do you have any ideas how I could solve this issue?

Koen Bouckhout [SLC] [DevOps Advocate] Selected answer as best 25th March 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Toon Casteele [SLC] [DevOps Enabler]6.97K Posted 25th March 2025 0 Comments

The property placeholder (and other placeholders) have specific behavior where a shape will not be initialized until the placeholder resolves. Because the value is empty, the shape does not get initialized and thus the condition does not evaluate. You can work around this by using the "AllowEmptyDynamicValues" option on the shape. But that is the less elegant solution.

The cleaner fix is to use the "Property:" syntax on the condition itself rather than a placeholder.

You can then formulate your "Hide" condition as such: <A>-A|Element:[this elementID]|Property:Operational Status|=Maintenance

Note that I opted for the "this elementID" placeholder rather than "this element" on the off chance that your element name contains a '|' or '-' character and a separator problem occurs in the shape data.

Koen Bouckhout [SLC] [DevOps Advocate] Selected answer as best 25th March 2025
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

When using the Setter = true attribute, will the copy action always be executed first? 1 Answer | 1 Vote
Multiple Set on Table parameters for DVE’s 0 Answers | 2 Votes
DOM Definition relations returned in Definition query 0 Answers | 2 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 (68) Cube (150) 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) services (51) 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