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
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Change variable which influence the same shape

Solved229 views16th July 2026Visio Visio Buttons
4
David Crome [DevOps Member]344 3rd July 2026 0 Comments

Hi Dojo,

I have a shape which should be a button with these two data fields set:

SetVar => LOCKED:0
Variable => LOCKED|Show;=1

LOCKED is set to 1 by default via InitVar. So the shape is displayed. But: I can not click it. I guess it is because it s shape should not influence or in this case even remove itself?

But "it works" when I use the Show instead of the Variable data field:

SetVar => LOCKED:0
Show => <A>-A|Value|[var:LOCKED]|=0

But: Now the shape is not design anymore like in Visio but like "a button that looks and behaves like a default DataMiner Cube button" as if I would set the Options to Control=Button.

For me it is not important how I can archive this, but I want that my design stays like it is and it can change the variable even it uses it for shape manipulation.

and it looks like that the toggle button mechanism is not possible because it only works with a parameter of an element?

Thanks,
David

David Crome [DevOps Member] Selected answer as best 16th July 2026

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Miguel Obregon [SLC] [DevOps Catalyst]23.46K Posted 5th July 2026 2 Comments

Hi David,

A possible option is to use an automation script to update a session variable:

See below code snippet:

ScriptParam spValueLocked = engine.GetScriptParam("ValueLocked");
engine.AddOrUpdateScriptOutput(UIVariables.VisualOverview.CreateKey("Locked"), spValueLocked.Value);

Script Definition:

Shape definition:

Execute: Script:TEST_SESSION_VARIABLE|Parameters:ValueLocked=0|Options:NoConfirmation

Show: <A>-A|Value|[var:Locked]|=1

Small Animation:

Hope it helps.

David Crome [DevOps Member] Unselected an answer 16th July 2026
David Crome [DevOps Member] commented 6th July 2026

Hi Miguel,

works perfectly, many thanks!
And I didn't even know that an automation script works with just 2 lines without the class construct and run method. Learned that today! 🙂

Greetz,
David

David Crome [DevOps Member] commented 6th July 2026

hm, but it only works in Cube, not when I use it with a Visual Overview in a low-code app. any idea why it works different there?

You are viewing 1 out of 2 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

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