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

Shape data field “Show” with condition

Solved1.11K views23rd July 2021condition show
1
Stefan Schedletzky10 22nd July 2021 0 Comments

Hello,

I have not found the answer in the help. I would like to check once a field is empty and another field has anything inside.

<A>and<B>-A|VIEW:[this view]|PROPERTY:Field1|=none-B|VIEW:[this view]|PROPERTY:Field2|Regex=*

This was one of my tests, but would be nice if I can get a clear answer how to check for it.

Best regards,
Stefan

Stefan Schedletzky Selected answer as best 23rd July 2021

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Miguel Obregon [SLC] [DevOps Catalyst]19.15K Posted 22nd July 2021 3 Comments

Hi Stefan,

I tested the following condition:

<A>and<B>-A|VIEW:TestView1|PROPERTY:TestPropertyView1|Regex=^$-B|VIEW:TestView2|PROPERTY:TestPropertyView2|Regex=.*

Where:

-A|VIEW:TestView1|PROPERTY:TestPropertyView1|Regex=^$

Matches an empty string in the view property TestPropertyView1

-B|VIEW:TestView2|PROPERTY:TestPropertyView2|Regex=.*

Matches any string in the view property TestPropertyView2

However, I found the following limitations:

  • For the first condition (matches an empty string), you will need to set this view property with an empty string. If the property is not set, the condition will not work
  • For the second condition (matches any string), the regular expression will also match an empty string
Stefan Schedletzky Selected answer as best 23rd July 2021
Stefan Schedletzky commented 23rd July 2021

Hi Miguel,

thanks for your answer, I have copied it and it’s not working. I’m a bit confused about the limitations. How can I set an empty string to the property? Only spaces are not stored.

Miguel Obregon [SLC] [DevOps Catalyst] commented 23rd July 2021

Hi Stefan,
Are you planning to set the view properties manually or programmatically?
In order to save a empty space for a view property (manually) I had to set first the view property to any value. Next, I proceeded with updating the same view property by removing the previous value that I set and applying this update.

Stefan Schedletzky commented 23rd July 2021

Hi Miguel,

I’m doing this manually. As the second condition is working fine I have made the check not for an empty string, instead I’m checking if “none” is in the field.
Thanks for your help!

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