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

With Microsoft Visio, setting multiple vars when selecting one on a list.

Solved1.08K views7th July 2023
2
Henri Martins [DevOps Advocate]626 11th January 2023 0 Comments

Hi.

On Microsoft visio, I've got a select list with this shape data:

Title =>  SetVar

Type =>  String

Value => MYValue:Value1:value2:value3|

It' simplified becaused I've got A big list of values

Then it create me a box with a scroll bar. Until here all is fine.

But I need when MYValue is egal to Value 1 to set 4 other values.

In the same way when MYValue is egal to Value 12 , the 4 other values must change.

How could I do this?

Many thanks

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 7th July 2023

4 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Jarno Lernou [SLC] [DevOps Enabler]5.03K Posted 11th January 2023 1 Comment

Hi Henri, I might be wrong but there's no straightforward way to easily accomplish this. I'm not saying, it is not possible, but it'll require some tricks to get there.

There are also some details we're missing to give you the full solution, but either way here's an idea of how you could get it to work (and possibly tweak it where necessary).

In my proposal, I'm making use of the following: Configuring a page to update a session variable when another session variable changes | DataMiner Docs. With this functionality, you can set a session variable with dynamic content. Whenever the dynamic content changes, the variable gets updated.

Example: Make a new Shape Data field on the page level:

  • Execute: Set|Variable|TempVar|[var:myVar]|SetTrigger=ValueChanged

Whenever the session variable 'myVar' changes, it will be filled into the session variable 'TempVar', i.e. TempVarwill be a copy of myVar.

Now you only want to change another variable whenever myVar is equal to something, i.e. you only want to trigger the above statement in certain cases. Possibly you also don't want any of the content of the value of 'myVar' in the content of the resulting session variable. To overcome this, you'll need to make use of the following placeholder: [RegexReplace:x,y,z].

Again, not all details of how you see this are in the question, but let's assume the following: 'if 'myVar' changes to 'value1' then (and only then) I want to trigger a change. You could see this as an 'if-statement' which you can implement by using two times the regexreplace placeholder:

Set|Variable|TempVar|[RegexReplace:[var:myVar],[RegexReplace:^value1$,[var:myVar],myValue1Changed],[var:TempVar]]|SetTrigger=ValueChanged

If myVar now changes to 'value1', TempVar will have the value 'myValue1Changed', otherwise, it will keep its value. The same applies to doing it for another value, e.g. 'value4' in my conclusion below.

Now the last step is to set the output session variable 'ResultVar1'. The same format is applied and is again an 'if-statement'. If TempVar changes to 'myValue1Changed', it will set the variable 'ResultVar1' with 'newvalue1.1' and otherwise keep its content. The same again applies to the other session variable.

Set|Variable|ResultVar1|[RegexReplace:[var:TempVar],[RegexReplace:^myValue1Changed$,[var:TempVar],newvalue1.1],[var:ResultVar1]]|SetTrigger=ValueChanged

In the end, you will have the following shape data on the page level:

  • Execute: Set|Variable|TempVar|[RegexReplace:[var:myVar],[RegexReplace:^value1$,[var:myVar],myValue1Changed],[var:TempVar]]|SetTrigger=ValueChanged-Set|Variable|TempVar|[RegexReplace:[var:myVar],[RegexReplace:^value4$,[var:myVar],myValue4Changed],[var:TempVar]]|SetTrigger=ValueChanged-Set|Variable|ResultVar1|[RegexReplace:[var:TempVar],[RegexReplace:^myValue1Changed$,[var:TempVar],newvalue1.1],[var:ResultVar1]]|SetTrigger=ValueChanged-Set|Variable|ResultVar1|[RegexReplace:[var:TempVar],[RegexReplace:^myValue4Changed$,[var:TempVar],newvalue4.1],[var:ResultVar1]]|SetTrigger=ValueChanged

Of course, there could be other options, e.g. doing the logic through Automation or a connector, but here's a Visio-only solution presented. If you want now to add more ResultVar's then it's a matter of copy/paste.

Kind Regards,
Jarno

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 7th July 2023
Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 12th January 2023

I was also going to suggest this approach and believe this is the best option we have at this moment.

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