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
8 replies
Subscribers
8 subscribers
Views
6876 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi Team, the clean() function which helps in stripping additional spaces was not
kalpanap
over 9 years ago
Hi Team, the clean() function which helps in stripping additional spaces was not working in 7.10. I posted it on news.
In version 7.11 also, I am facing the same issue with clean() function(Though,I have used different functions to perform same action).
When I gave "clean(remove extra spaces)" , returned "remove extra spaces",
clean(remove ££££££££ extra spaces ), returned "remove extra spaces",
clean(remove 11111 extra spaces), returned "remove 11111 extra spaces"
Please help on this, as the function didn't remove the additional spaces.
OriginalPostID-179982
OriginalPostID-179982
Discussion posts and replies are publicly visible
0
janakik
over 9 years ago
Try using trim function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
I can replicate this on 7.10 - looks like a bug to me. I would suggest you raise a support case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
There seems to be a disconnect between what the documentation says and what the rule definition says. The documentation, agreeing with your original assumption, says "Returns the specified text after stripping it of additional spaces between characters." Source:
forum.appian.com/.../Text_Functions.html
Note: this seems to essentially duplicate what the trim() function says.
On the other hand, the in-system rule definition says "The function will return the provided text, minus any characters not considered printable. (Performs opposite function of strip.)" - see attached screenshot. Spaces definitely are "printable", so the behavior you're experiencing is consistent with this description.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Shyam Bommakanti
Certified Lead Developer
over 9 years ago
This is interesting Appian's documentation has clean as removes spaces but on the Appian Designer it has something else
Documentation:
forum.appian.com/.../Text_Functions.html
Appian designer:
The function will return the provided text, minus any characters not considered printable. (Performs opposite function of strip.)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
I think I would still raise a support case as either the function is wrong our the documentation is wrong; either way, something needs fixing!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eliot Gerson
Appian Employee
over 9 years ago
Thank you for bringing this to our attention.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kalpanap
over 9 years ago
@Eliot, Should I go ahead for raising a support ticket?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eliot Gerson
Appian Employee
over 9 years ago
That is not necessary, thank you. As I noted on the other post you made, I've gone ahead and notified our Documentation team of the inconsistency.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel