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

RegexReplace in an element shape data issue

Solved1.16K views5th September 2023Regexreplace Visual Overview
0
Philip Argent [DevOps Enabler]579 30th August 2023 7 Comments

Hi,

We have several parameters displayed on a service visual overview, so we don't need lots of custom properties against the service we've consolidated a lot of the value into lists, that we use regex replace to return just the N'th position in the list which work fine on the 'Parameter' shape data, but doesn't on the 'Element' shape data, which I'm guessing is down to us using pipe in the regex replace, which is used to define the Visio page against 'Element', and reading the help page it doesn't look like is implemented against the 'Element' shape data.

Example of what doesn't work in Element

Alternate example of what does work in element, but isn't as clean for getting the second position for example

Another option that does work, but is very messy on the Visio is to use the placeholder, giving us

Example Visio

Example Cube

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th September 2023
Toon Casteele [SLC] [DevOps Enabler] commented 30th August 2023

What is the exact result of your full regexreplace? You can check by putting it into shape text. Furthermore, what is the value of your “primary element” property?

Philip Argent commented 30th August 2023

Hi Toon,
All the values for the regexreplace return correctly when putting them directly in a text shape.
primary element is a semicolon list of element names.

Toon Casteele [SLC] [DevOps Enabler] commented 30th August 2023

I’m mainly interested in seeing the actual results of both to see where special characters might be messing up something.

Philip Argent commented 30th August 2023

Primary Element contains ‘DCXATVX20;DCXATVX20;’
Primary Output contains ‘Slot 1 DCX_ATVX20_TEST_OP_02;Slot 1 DM_TEST_01_DVB;’

Toon Casteele [SLC] [DevOps Enabler] commented 1st September 2023

Hi Philip, what about the result of the full regexreplace? As I assume that’s intended to print out the first element in the list?

Show 2 more comments

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Toon Casteele [SLC] [DevOps Enabler]7.00K Posted 1st September 2023 0 Comments

There is a bug in a core part of the code apparently that causes this issue. Fixing it involves a bit of risk since every shape runs through this piece of parsing.

Luckily, we could immediately try out a workaround that should fix it. You can put the entire regexreplace on page level in the execute page data and use it to do a setvar. The execute data will look like this: "Set|Variable|primaryElement|<your regexreplace here>|ValueChanged". You could also include the ExecuteSetsOnInit option to make sure the variable is also set upon init if the property is already fetched at that point.

You can then use the variable in your shape instead.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th September 2023
You are viewing 1 out of 1 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