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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Regex for highlighting visio objects

Solved1.57K views18th July 2023Highlight Regex Visio
2
Jeroen Geldhof [SLC] [DevOps Enabler]5.04K 28th October 2021 0 Comments

Using the Highlight in Visual Overview it's possible to make a search functionality.  By typing text in a field coupled to a variable you can then use the Regex on the Highlight to filter on the search phrase.

Currently I have following regex, where ServiceName is the variable being filled in on a search field.

Name=(.*[Var:ServiceName].*)

This works fine for searching, but when I empty the search field, all shapes are highlighted.
I'd need a regex that allows me to search for a word, but doesn't match an empty string.

Nothing I find online seems to match what I need.
Anyone who's good at regex?

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

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Jeroen Geldhof [SLC] [DevOps Enabler]5.04K Posted 29th October 2021 0 Comments

I did a workaround by setting the initial value of the variable to 'Select Service' and to add a Clear Filter button next to the filter field which fills the variable with 'Select Service'.
Since there are not services with the name 'Select Service' it's not highlighting any of the service objects

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2023
0
Alberto De Luca [DevOps Enabler]4.58K Posted 28th October 2021 4 Comments

Hi Jeroen,
Not sure if this external link can help - haven't tested any of the syntax suggested there - but if I understand correctly, you have a requirement to replicate the "Search" behaviour of the Surveyor filter, except that it would be fully based on a custom Visual Overview to highlight shapes basing on what is typed in the filter, correct?

Possible work around: could you hide all shapes when the search string is empty? Or can you initialize the Var to something else when the string is emptied?

As for regex in Visual Overviews, are you still subject to protected words such as "DMA"?

Far from being an expert of this protection in the search, but if the behaviour is the same would it be feasible to initialize the Var to a protected character sequence?

Or is it just a Visio label that you are using for the session variable?

Pieter Van Compernolle [SLC] [DevOps Enabler] Posted new comment 2nd November 2021
Alberto De Luca commented 28th October 2021

PS & Off-Topic: Why is “DMA” a protected keyword?
What’s the requirement for this?
I never have a good answer when younger engineers ask me why they can’t find the DMA in the surveyor by typing just 3 letters

Jeroen Geldhof [SLC] [DevOps Enabler] commented 29th October 2021

In regex101.com I got it working with following regex, but unfortunately positive lookahead in regex doesn’t seem to work in DataMiner.
(?=.*test.*)(^(?!s*$).+)

Not sure about the ‘DMA’ keyword

Pieter Van Compernolle [SLC] [DevOps Enabler] commented 2nd November 2021

Regarding the Keyword ‘dma’:
This keyword limits the results to only results of type ‘DataMiner Agent’. You can use it in combination with the ID, Name, IP, … of your agents in the cluster.
This is indeed not documented, but I’ll inform our documentation team so this can be added.

Alberto De Luca commented 4th November 2021

Thanks for the info Pieter.

On a side note, this protection looks excessive in Surveyor & Cube GUI filters as it simply does not allow the search of sequence “DMA” within any element name – so if I have an element called “AdManager”, *DMA* doesn’t return any element in the filtered list

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

Recent questions

DOM Definition relations returned in Definition query 0 Answers | 0 Votes
Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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