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 – Child Shape – Info Regex

Solved689 views3rd May 2024child Regex Visio
2
James Stokell [DevOps Advocate]493 3rd May 2024 0 Comments

I want to do some regex on a child element’s name, for this example let’s say there’s a view which is called ‘RF cams’, and it has child elements which are always called “RF Cam 1″, RF Cam 2”, etc.  There are quite a few and I want the number to be quite large, so I want to cut the ‘RF Cam ‘ part from the displayed name.

If i could use the asterisk in the text box I could work with that, but as I can’t (partly because you can’t use that with regex as I understand it, and because the asterisk returns blank on this child shape for some reason).

So how can I do this?  Currently I’m using “Info” – “Name” and an asterisk to display the name.

Thanks peeps!

James Stokell [DevOps Advocate] Selected answer as best 3rd May 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Toon Casteele [SLC] [DevOps Enabler]7.00K Posted 3rd May 2024 2 Comments

You can use regexreplace to make modifications on the displayed name.

Rather than using the Info shape data, we recommend nowadays to use the placeholder in your shape text. That means

  1. Remove the Info shape data
  2. Replacing the asterisk ‘*’ in your text with “[Name]” will give you the same result
  3. You can now wrap the “[Name]” in a regexreplace directly in your shape text. e.g. [regexreplace:RF Cam ,[Name],]
Toon Casteele [SLC] [DevOps Enabler] Posted new comment 3rd May 2024
James Stokell [DevOps Advocate] commented 3rd May 2024

I have been using [this element] placeholder in most places, the [name] placeholder passed me by as it’s not directly listed in the placeholders documentation, but now I’ve seen the link to the ‘info’ part at the top, that’s going to be very useful, thanks!

Toon Casteele [SLC] [DevOps Enabler] commented 3rd May 2024

Indeed, it opens up a world of possibilities as you can also use multiple info tags in one shape, where previously you were limited to one.

1
Jarno Lernou [SLC] [DevOps Enabler]5.03K Posted 3rd May 2024 1 Comment

Hi James,

You can use a placeholder for this, i.e. [this element] resolves also to the name of the element. Maybe it’s good to keep in mind that the context of the shape and the context of the placeholder may be different, so it could be that you’ll need an extra option to correct this (e.g. ForcePropertyFromShape).

As for the shape, you can remove the Info shape data and replace the text of the shape with the placeholder: [RegexReplace:RF Cam ,[this element],]

Kind Regards,

Jarno

James Stokell [DevOps Advocate] Posted new comment 3rd May 2024
James Stokell [DevOps Advocate] commented 3rd May 2024

Hi Jarno, [this element] results in a blank output on the object, with and without the ‘Info’ shape data, so that doesn’t work.

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