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
11 replies
Subscribers
8 subscribers
Views
12684 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Converting a string to an integer array
judym598
Certified Senior Developer
over 8 years ago
I have a form that captures user input to include multiple values via a checkbox field. The values are stored in a pv (integer array called pv!dataTypes_int). For example: (4;7;10), which are ids from another CDT used at a later point in the process to display data from the reference table. The integer array is then converted to a string and saved as part of a CDT (i.e., pv!newEula_cdt.dataType). In order to redisplay the values checked on that form, I have to convert the string of numbers to an integer but when I use the tointeger(pv!newEula_cdt.dataType) I get (4710). Is there a way to convert this string back to an integer and retain the semicolons?
OriginalPostID-232073
Discussion posts and replies are publicly visible
Parents
0
judym598
Certified Senior Developer
over 8 years ago
The 'tostring(pv!dataTypes_int)' part works just fine. The semicolons are saved there - my problem is when I convert it back to an integer.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
judym598
Certified Senior Developer
over 8 years ago
The 'tostring(pv!dataTypes_int)' part works just fine. The semicolons are saved there - my problem is when I convert it back to an integer.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data