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
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
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.
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!
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.