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

Hiding Visio shapes with variables

Solved406 views20th December 2024Regex shapes variables Visio
4
David Rid [DevOps Enabler]628 19th December 2024 0 Comments

Hi,

I am trying to hide a shape in Visio by checking if a parameter is set to the value "NULL".

This works fine when I directly use the parameter. However, when I try to achieve the same result using a variable, the shape no longer hides.

Could you please help me with the correct syntax?

Thanks in advance!

David Rid [DevOps Enabler] Selected answer as best 20th December 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Jarno Lernou [SLC] [DevOps Enabler]5.03K Posted 19th December 2024 5 Comments

Hi David,

It depends a bit on what you would like to achieve. In the current way how you defined the syntax in your second screenshot, DataMiner will expect the same format as in your first screenshot. That means, the value will be a parameter ID and its index (in your case).

Probably that is not what you want, as the value of your session variable might have the value 'NULL'. In that case, you will have to use a slightly different syntax to achieve this.

<A>-A|Value|[var:Screen101]|=NULL

To be fully complete, I see you are referencing parameter 65022 which is linked to a property value. Therefore, the most ideal syntax is something like the following:

<A>-A|Element:4733/1815|PROPERTY:Screen101|=NULL

Kind Regards
Jarno

David Rid [DevOps Enabler] Posted new comment 20th December 2024
David Rid [DevOps Enabler] commented 20th December 2024

Thank you for your help; this worked!

Could you also tell me how to check if a variable is empty, rather than checking if it is "NULL"?

Jarno Lernou [SLC] [DevOps Enabler] commented 20th December 2024

In that case, I preferred using a ReGex:
Example: [Sep:-@]<A>@A|Value|[var:PK_DiscoveredElements]|Regex=^$

David Rid [DevOps Enabler] commented 20th December 2024

I’m almost too afraid to ask further XD, but how would you connect these with an AND operation so that all have to be empty for the shape to hide?

<A>-A|Value|[var:Screen101]|Regex=^$ <A>-A|Value|[var:Screen102]|Regex=^$ <A>-A|Value|[var:Screen103]|Regex=^$

Jarno Lernou [SLC] [DevOps Enabler] commented 20th December 2024

No worries, happy to help. The first part of the value is your 'boolean expression'. You can find many examples in the docs: https://docs.dataminer.services/user-guide/Basic_Functionality/Visio/miscellaneous/Extended_conditional_shape_manipulation_actions.html#examples

Example:
<A>and<B>-A|Service:myService|#TotalAlarms|=0-B|Element:myElement|#TimeoutAlarms|=0

David Rid [DevOps Enabler] commented 20th December 2024

Great, Thanks!

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
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