Hi, I have readable grid in which i am using arrow icon, so if I click on that arrow so that row should go up and upper row should come down. I can get all data items from current row, but how I will get data from previous row, So I can apply swapping conditiin
Discussion posts and replies are publicly visible
Find below my generic expression to swap two items in a list.
if( and( not(rule!PCO_IsVoid(ri!list)), ri!index1 > 0, ri!index1 <= count(ri!list), ri!index2 > 0, ri!index2 <= count(ri!list), ri!index1 <> ri!index2 ), updatearray( ri!list, {ri!index1, ri!index2}, {ri!list[ri!index2], ri!list[ri!index1]} ), ri!list )
As Appian suggests, now you should replace it with a!update()
Thanks. Done :-)