Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
11 subscribers
Views
1815 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Hello Everybody, Has anyone had success creating a facet that filters
Jin Pheh
Certified Associate Developer
over 9 years ago
Hello Everybody,
Has anyone had success creating a facet that filters results based on a null value? I've found three previous forum posts on the subject but none of them have any solutions or workarounds (The solution in the first post doesn't work outside of a limited dataset where all possible values are known)
forum.appian.com/.../e-77621
forum.appian.com/.../e-112582
forum.appian.com/.../e-110585..
.
OriginalPostID-116876
OriginalPostID-116876
Discussion posts and replies are publicly visible
Parents
0
siddharthg521
over 9 years ago
You can either use a custom function named - executequery() and can run the SQL statement with "IS NULL" clause in your facet expression editor that will bring the appropriate records (column with which NULL needs to be compared) - the output of this will be a JSON Array and you can use custom function to parse JSON into array and this will solve your problem, OR as jasonr suggested, you can insert a Dummy String in the particular column when the value of that column is NULL, during inserting/updating the tuple in the database, and can then create a query rule with one of the input equal to that "Dummy String" inserted.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
siddharthg521
over 9 years ago
You can either use a custom function named - executequery() and can run the SQL statement with "IS NULL" clause in your facet expression editor that will bring the appropriate records (column with which NULL needs to be compared) - the output of this will be a JSON Array and you can use custom function to parse JSON into array and this will solve your problem, OR as jasonr suggested, you can insert a Dummy String in the particular column when the value of that column is NULL, during inserting/updating the tuple in the database, and can then create a query rule with one of the input equal to that "Dummy String" inserted.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data