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
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Visio Shape Data for 1st of “impacted services”

Solved954 views25th July 2023impacted services info Microsoft Visio shape data Visual Overview
0
Sam Stump [DevOps Advocate]616 12th June 2023 0 Comments

Using Shape Data with INFO: Impacted Services I get a string with comma separated values of the impacted services.

I only want to display the 1st of "impacted services" or alternatively drop where the 2nd impacted service is text i am already expecting that I do not want to show ie:"Deva Batch Service" is the second service I don't want to show in my text box.

I have not yet figured out the wizardry to make this happen if there are any ideas to guide me on this one.

When I get past that first issue - the second thing I wanted to do was make the text box when clicked take you to the view of the 1st impacted service.

Sam Stump [DevOps Advocate] Answered question 25th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Toon Casteele [SLC] [DevOps Enabler]6.98K Posted 13th June 2023 1 Comment

Answering your first question first to help you out asap:

You probably want to ditch the info shape data and instead use placeholders directly in the shape text. This will allow for more flexibility as you will see in a second. So, step 1: Get rid of the info shape data and put "[Impacted Services]" in your shape text instead.

Next, we want to use the regexreplace to get the first service only. For that we need a regex that matches everything before the first comma and then replaces everything with just that first part. The regex is this: (?<firstService>[^,]+)(,.+)*
Let's analyze it:

  • (?<firstService> indicates a named capturing group. We will be able to reuse whatever is captured between the parenthesis in our replace eventually.
  • [^,]+ captures anything except for ",". the "+" indicates we want to match this 1 or more times.
  • (,.+)* captures ",", followed by any characters 1 or more times (indicated by the +) and THEN allows this to occur any amount of times, including 0.

Eventually, we want to use this regex in our regexreplace, with our input being the impacted services: [regexreplace:(?<firstService>[^,]+)(,.+)*,[Impacted Services],${firstService}] will be our eventual shape text and should be replaced by the result of the entire recursive placeholder text.

If you want more info, I would encourage reading the docs, BUT we also have a brand new Visual Overview course lesson coming up very soon on advanced placeholder usage like this. The regexreplace is also included in that one.

For your second question, think of reusing the entire placeholder text above in your element shape data. It should allow you to link a shape to the service directly that way. (Note: at that point you can just use the "[Name]" as shape text and you can avoid using the entire placeholder twice.)

One final tip: Always simplify your placeholders as much as possible if you have trouble getting the right result. Replace nested placeholders by static text, put the separate parts into separate shapes... It will allow you to identify what part is giving you trouble more quickly.

Sam Stump [DevOps Advocate] Posted new comment 25th July 2023
Sam Stump [DevOps Advocate] commented 25th July 2023

Thank you Toon for getting me started on this one – I’ve posted a response as a “new answer” as not possible to insert pictures into comments.

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

© 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