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 you 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

How to use Regex in Child Shape Viso

70 views20 hours ago
0
Ramesh Rajasekaran [DevOps Member]561 22 hours ago 0 Comments

I’m using a group shape and a child shape. I created a new shape inside the child shape to retrieve the box name of each row from the table. I also want to filter the name using regex since I don’t need the full name, but I’m not sure how to do that. When I pass the parameter ID (8926), it returns the entire name.

I want to extract the text that comes after "hd-". If the string doesn’t contain "hd-", it should display the full name instead.

Sebastiaan Dumoulein [SLC] [DevOps Enabler] Answered question 20 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Sebastiaan Dumoulein [SLC] [DevOps Enabler]13.62K Posted 20 hours ago 7 Comments

Hi Ramesh,

This isn’t the simplest thing to pull off, but it can be done.

You’ll need to nest the parameter placeholder inside a regexreplace placeholder in the shape’s text.

Using the text below worked for me:

[RegexReplace:MyRegex,[param:[this elementid],502,[TableIndex]],]

Note that the shape should also have the ForcePropertyFromParent option so the [this elementid] placeholder uses the context of the element containing the table.

Sebastiaan Dumoulein [SLC] [DevOps Enabler] Posted new comment 17 hours ago
Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 20 hours ago

Note that you can paste the text directly in the shape, so it's not using any Text shape data.

Ramesh Rajasekaran [DevOps Member] commented 20 hours ago

[RegexReplace:MyRegex,[param:[this elementid],502,[TableIndex]],] i didn't get this. Should I replace something on this? What is 502

Under what property should I use this?

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 20 hours ago

That is the parameter ID containing the text, see https://docs.dataminer.services/dataminer/Operator_guide/Visio/reference/Placeholders_for_variables_in_shape_data_values.html#paramdmaidelementidparameteridtablerow in your case it's 8926.

Ramesh Rajasekaran [DevOps Member] commented 20 hours ago

[RegexReplace:.*-hd-,[param:[this elementid],8926,[TableIndex]],]

you mean something like this. And place in under shape data "text" property?

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 20 hours ago

No, place it directly into the shape (as text), do not use the text shape data. In case it doesn't work, you need to take it one step at a time (first start with your param placeholder and make sure it returns the text)

Show 2 more comments
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