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

Filter Visio list built from Element Table with another Visio Shapes text

Solved1.62K views9th April 2021filtering Visio
1
Jon Morley10 12th March 2021 2 Comments

Hi,

I would like to be able to filter a Visio shapes drop down choices. The Visio populates the drop down list Shape data from another Elements table cell like this:-

SetVar  PlayoutServer[property:x20IRS_Output_Port_PRI]=[param:AppearTV_X20_Utilities,1014,[property:x20IRS_PRI_ElementName]]

The drop down list is populated with the contents of table column id 1014, on the row that matches [property:x20IRS_PRI_ElementName]. The table cell contents are 'source1:source2:source3:random4'.

I would like to filter the drop down list using another Visio shape that has a Shape Data of:-

SetVar SearchFilter[property:x20IRS_Output_Port_PRI]

After many attempts  with ':', '|',  'regex' and conditional <A> and <B> I cannot find the correct string to perform the filtering.

I am running Dataminer 9.6 CU13.

Thanks.

Jon

Jon Morley Selected answer as best 15th March 2021
Toon Casteele [SLC] [DevOps Enabler] commented 12th March 2021

Could you specify what you want to filter and what the result should be in your filtered dropdown?

Jon Morley commented 12th March 2021

Hi Toon, I would like to filter the ‘source1:source2:source3:random1’ items in the Visio drop down, matching by the equivalent of a C# ‘Contains’. So if the Variable SearchFilter=source then ‘source1’, ‘source2’ and ‘source3’ would be displayed in the drop down but not ‘random1’

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Toon Casteele [SLC] [DevOps Enabler]6.97K Posted 15th March 2021 7 Comments

A regex should do the trick. A colleague of mine tested with this one and that seemed to work:
(?<source>[^:]*source[^:]+:?)|(?<alt>[^:]+:?)

If you want "source" to be a dynamic part that the user can enter, you can add a SetVar shape to your Visual Overview, with shape data SetVar set to "SearchFilter". This will show a textbox in which the user can then enter things.

You can then replace the "source" above with a var placeholder "[var:SearchFilter]"

Your full placeholder then becomes [regexreplace:(?<filter>[^:]*[var:SearchFilter][^:]+:?)|(?<alt>[^:]+:?),[param:AppearTV_X20_Utilities,1014,[property:x20IRS_PRI_ElementName]],${filter}]

Edit: If you want your regex to be case insensitive, it should suffice to add "(?i)" in front of your regex. Your full regex is then [regexreplace:(?i)(?<filter>[^:]*[var:SearchFilter][^:]+:?)|(?<alt>[^:]+:?),[param:AppearTV_X20_Utilities,1014,[property:x20IRS_PRI_ElementName]],${filter}]

Toon Casteele [SLC] [DevOps Enabler] Edited answer 9th April 2021
Jon Morley commented 15th March 2021

Hi Toon, I don’t understand sorry. Where does my Visio parameter that the user can enter fit into the string?

Without the regexreplace would the full Visio Shape Data be:-

SetVar PlayoutServer[property:x20IRS_Output_Port_PRI]=[param:AppearTV_X20_Utilities,1014,[property:x20IRS_PRI_ElementName]],${SearchFilter[property:x20IRS_Output_Port_PRI]}]

Where SearchFilter[property:x20IRS_Output_Port_PRI] is a SetVar Shape Data on another shape.

Also the list of choices might not literally be source1:source2 but rather strings like:-

VP_TEST_CH07
VP_TEST_CH08
Test_LoopAround

I would like to enter ‘VP’ into the searchFilter SetVar and have it find VP_TEST_CH07 and VP_Test_CH08.

Toon Casteele [SLC] [DevOps Enabler] commented 15th March 2021

I wasn’t aware that your filtering was based on user output. The answer was edited, hopefully completing the solution.

Also note that in the comment above you posted something in the following syntax “varname=” while the syntax for a dropdown is “varname:”

Jon Morley commented 15th March 2021

Hi Toon, Apologies for the confusion. The new string and varname: syntax change is now filtering the drop down list. Thank you so much!

Jon Morley commented 25th March 2021

Hi,

If we needed to make the search filter case insensitive where would we put the Regex ‘i’ modifier?

Toon Casteele [SLC] [DevOps Enabler] commented 25th March 2021

As far as I can tell from documentation, your /i modifier comes at the end of your regex pattern. The syntax for the regexreplace is [regexreplace:pattern,input,replace], so it would come at the end of your pattern part.

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

Recent questions

How to implement bearer token refresh? 0 Answers | 0 Votes
Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 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 (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) 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) 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