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
7 replies
Subscribers
7 subscribers
Views
2850 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
In DoForEach Smart Service Expression Component filterNulls does not
aneeshv
over 12 years ago
In DoForEach Smart Service Expression Component
filterNulls does not work for me with TEXT ARRAYs?
rule!filterNulls({"test1","test2",null,"test5",null})
gives me
test1; test2; ; test5;
Why is that?
...
OriginalPostID-60934
OriginalPostID-60934
Discussion posts and replies are publicly visible
0
dbabu
over 12 years ago
You can use an alternate function to remove nulls from a list - can you try difference({"test1","test2",null,"test5",null},""). Result of this function would be test1, test2, test5
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subhankarb
over 12 years ago
use reject function------- reject(fn!isnull,ri!array)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Abhishek Shadangi
Appian Employee
over 12 years ago
#knowledgeshare Appian 7.0 introduced the looping functions -- see
forum.appian.com/.../Looping_Functions
. The DoForEach usage has been deprecated and should be replaced with the looping functions moving forward.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aneeshv
over 12 years ago
We are on Appian 6.6.1
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aneeshv
over 12 years ago
Yes, difference works for me.. I don't see reject function... Must be in Appian 7.0
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Abhishek Shadangi
Appian Employee
over 12 years ago
Then you can do =fn!remove(pv!array,fn!where(doforeach("isnull",pv!array)))
#knowledgeshare Note: Expression rules, when used in the doforeach, are *not* resolved by the Application Builder's dependency checker, and hence you need to manually keep track of the expression rules used inside doforeach. In the expression I mentioned above, you will be using isnull, so not a problem here, but something to keep in mind in-case you plan on using expression rules inside the doforeach. Hope this helps!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aneeshv
over 12 years ago
There is no WHERE clause in Appian 6.6.1. Is this something we can use? I tried but its not working? Is the isnull function in doforeach in double inverted commas?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel