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
4 replies
Subscribers
7 subscribers
Views
1531 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Earlier people reported an issue with editable grid and selectionSaveInto defect
venkats533
over 9 years ago
Earlier people reported an issue with editable grid and selectionSaveInto defect. Yesterday I too have faced same issue. Here is how I have resolved it. Basically, selectionSaveInto is keep adding another array to an existing empty array. Hence, when I tried to use the saved value, the result is not what is expected. My followup script is expecting an array of numbers, but found array or array of numbers.
Anyway, here is the code snippet of how I have resolved my issue. I am posting this so, if any one else has same issue, they can get benefited.
selectionSaveInto: {
ri!selectedSecurityIndex,
/* due to a defect in Appian, selection is keep growing as array of array */
if(
fn!count(
ri!selectedSecurityIndex
) = 0,
{},
{
a!save(
ri!selectedSecurityIndex,
fn!reduce(
fn!append,
{},
ri!s...
OriginalPostID-159278
OriginalPostID-159278
Discussion posts and replies are publicly visible
0
venkats533
over 9 years ago
...electedSecurityIndex
)
),
a!save(
ri!selectedSecurityIndex,
fn!reject(
fn!isnull,
ri!selectedSecurityIndex
)
)
}
)
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
Thank you for sharing! It would be good to post some links here of those posts where this was reported.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkats533
over 9 years ago
here is the latest link related to 7.9, though there another for other versions, the nature of defect may be different.
forum.appian.com/.../e-151610
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@venkats Hi, though I haven't seen this defect till date, the code snippet shared by you will act as reference for the Appian practitioners who face this issue. Many thanks for sharing it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel