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

Visio automatic Execute does not update session variable

81 views2 hours agoVisio
1
David Crome [DevOps Member]283 2 days ago 0 Comments

Hi Dojo,

*** UPDATES INLINE ***

I like to execute a script based on any change in a table cell and also when the page opens.

On page level I added the Options and Execute shape data fields:

Options ExecuteSetsOnInit

Execute
Script:MyScript|Parameters:trigger=[param:1/400,2505,F3]|Options:NoConfirmation|SetTrigger=ValueChanged

=> param is DMA_ID/ELEMENT_ID,PARAMETER_ID,ROW_KEY

Is this correct? I read in the docs that in this case the row key is separated by colon

Update => Yes, the parameter subscription syntax is correct

The script is executed neither initially nor when the value changes.

Update => It is executed, but it does not change the session variable!

Note: I can execute the script with a visio shape click. And the script passes then the output to a session variable. But not when automatically executed. But when then script runs automatically by SetTrigger, it does not update the session variable with:

engine.AddScriptOutput(UIVariables.VisualOverview.CreateKey("ACTIVE_SYSTEM"), activeSystem);

Does this only work when executed by a user?

why do I want to this?
Instead of have a lot of the same complex multiple conditions combined, I just created a script which writes back a single output to display the shapes of the current active systems. I want to avoid to update many data fields if something changes like a parameter ID. I know I can use session variables for the IDs, but even then the conditions are not that easy to read and maintain then.

Maxim Bonte [SLC] [DevOps Member] Answered question 2 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Maxim Bonte [SLC] [DevOps Member]137 Posted 2 hours ago 0 Comments

Hi David,

I tried to reproduce your setup based on the information you shared, and I managed to get a similar scenario working.

What made the difference in my case was the variable scope used when displaying the output. It seems to work when using a card-level variable.

=> So in your case, the fix would likely be to reference the output as follows:
"[cardvar:ACTIVE_SYSTEM]"

If this doesn’t resolve the issue, could you share a bit more detail about your Visio setup? (i.e. how are you showing your variable?)

Maxim Bonte [SLC] [DevOps Member] Answered question 2 hours ago
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