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
+1
person also asked this
people also asked this
Replies
16 replies
Subscribers
9 subscribers
Views
4726 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I have a value like "A1~B2~C3" in a multiple PV. Now I want to convert
rishub
over 11 years ago
I have a value like "A1~B2~C3" in a multiple PV. Now I want to convert into multiple values like "A1; B2; C3" so that I can treat them as 3 different values. I used substitute function to show it as "A1; B2; C3" but it still counts it as single value. How can I get it as multiple values?
Thanks...
OriginalPostID-93388
OriginalPostID-93388
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Use the split() function passing ~ as the delimiter.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 11 years ago
For this and other text functions review Appian Documentation at
forum.appian.com/.../Text_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 11 years ago
Hi Eduardo,
Using split function gave me error:
EVAL:Invalid type@reason=Type Error: Invalid Character String: Cannot validate type (value in wrong format
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 11 years ago
split(ri!text,"~")
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 11 years ago
That works for me but let's use this one instead to see if that works better for you
split(ri!text,char(126))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 11 years ago
Even this did not work for me. My input is text multiple. That is why it is not working. Is there any function that works for multiple text input?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 11 years ago
This works for me even if I use "Text (Multiple)" (example:
forum.appian.com/.../121639)
Let's try this:
1. Use this expression only as seen in my example, notice how this time I am appending fn! before the word split to make sure it calls the out of the box function:
=fn!split(ri!text,char(126))
2. Copy and paste this input to make sure your text doesn't have any weird characters from an HTML page:
A~B~C
3. Click "Test Rule"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 11 years ago
Eduardo, I am getting the same result. I am using your expression and your test input but getting same error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 11 years ago
When I make Input single, it work but when multiple it gives error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 11 years ago
1. What Appian version?
2. Does your example look lime my screenshot when it's set to "multiple"?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>