on 2016 Apr 28 11:01 AM
Hi all,
I've got a custom OWL, and I'd like to hide columns if there's no data in them. I found a thread on here with a script, which I've stuck in:
So as far as I can tell, if the value of said column (I've aligned the screens so you can see it in the data view) is nothing, the visibility is false; otherwise, it's set to true. But here's what I've got in ByDesign...
Clearly, Mon Drop is empty...but it's not hidden. Ideas?
Lewis
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lewis,
Try this:
if ($controller.resolve("/Root/DataList/MondayVanRouteDrop") == "")
result = false;
else
result = true;
end
result = result
Will
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lewis,
The documentation does mention that certain functions might return null, however there's no other mention of it. Have you tried using null?
An alternative approach would be to do a for loop through /Root/DataList/MondayVanRouteDrop and seeing if any of the fields have a length greater than 0.
Will
User | Count |
---|---|
74 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.