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 Show/Hide Shapes conditionally based on Variable

Solved1.21K views22nd April 2024Visio
0
James Stokell [DevOps Advocate]493 18th April 2024 0 Comments

I need to show/hide shapes based on a variable, if it’s 1 then I need the some shapes to show and some shapes to hide, if it’s 2 then I need the ones that were hidden with 1 to show, and the ones showing to hide.

I can’t understand why this isn’t working as I expect.  I’m using both ‘Hide’ and ‘Show’ shape data fields to force the show and to force the hide (I have also tried just using hide, but I don’t know if I should expect the shape to show again if the logic for hide evaluates to 0).

In the ‘Hide’ shape field I’ve got: [var:activeInput];=2

There is a static ‘1’ in it’s text field, there is no other shape data defined, are other data fields required?

P.S.

I’ve started with just using a simple variable at a session global level, but I need to use a page variable with ‘[ParentTableIndex]’ in it’s name for the real use case, will nesting that placeholder become a problem?

Thanks, James.

James Stokell [DevOps Advocate] Selected answer as best 22nd April 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Jens Vandewalle [SLC] [DevOps Enabler]9.44K Posted 19th April 2024 7 Comments

Hi James,

When using Show/Hide, you need to make use of the extended conditional shape manipulation actions.

In your example it will be something as following for the hide:

<A>-A|Value|[var:activeInput]|=2

Thijs Vanovenacker [SLC] [DevOps Advocate] Posted new comment 31st May 2024
James Stokell [DevOps Advocate] commented 22nd April 2024

Thanks for your answer Jens, unfortunately that’s not working though; I have that in ‘Hide’ shape data field’s value and am setting that variable with two buttons for testing now and it’s not working.

I’ve got two icons one ending =1 and the other ending =1 on the end of the statement you posted, so when I set the variable to 1 or two, or of them to should be hidden at any time, and then show again when the variable changes to the other (that’s my expected outcome). But instead the icons show all the time, I’ve even for a text box outputing the variable and can see that it is indeed 1 or 2 as I set it.

Could it be that maybe it’s being set as a string and the statement is setup for an integer?

The buttons have this in their shape data: SetVar – activeInput:1 (or 2)

The icons and the buttons have no other data set, this is a nested (child) group these all live in, with a further nested child group inside this group.

Jens Vandewalle [SLC] [DevOps Enabler] commented 22nd April 2024

Hi James, Is it possible that you are setting a card or page variable? In that case you need to replace ‘[var:’ with ‘[cardvar:’ or ‘[pagevar:’.

James Stokell [DevOps Advocate] commented 22nd April 2024

I have found that if I add the shape data ‘element’ with the value ‘*’ then the show/hide works as expected.

Is that expected behaviour? Does every shape need that data so that the functions work?

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 22nd April 2024

This is not expected and should not be required. Do you have this behavior when the ‘Hide’ condition is the only shape data for a specific shape? Can you try this on a standalone shape? What DataMiner version are you running currently?

James Stokell [DevOps Advocate] commented 22nd April 2024

Looks like we’re running 10.3.0.0-13297. I only had the show field defined on the shape. I have found that it works without the ‘Element’ field when at the top page level (not nested in a child group).

Show 2 more comments
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