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
7 replies
Subscribers
7 subscribers
Views
2690 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
While deleting a row from a normal grid, how do I get the index of the deleted r
padmanabhanv
over 11 years ago
While deleting a row from a normal grid, how do I get the index of the deleted row?...
OriginalPostID-93494
OriginalPostID-93494
Discussion posts and replies are publicly visible
Parents
0
Sathya Srinivasan
Appian Employee
over 11 years ago
If you've deleted the 2 rows (i.e. row1 &3), your data is no longer 4 but 2. So next time you take an action, you are interested in just the remaining 2, right? You may want to check your delete logic.
On the other hand, if you're looking for just a running sequence where each number represents a row in a fixed fashion, then again, the same logic would work where-by you enumerate only once on the size of the array and persist (or map) the value against the rows. When you delete row 1 & 3, this array will be made of row 2 and 4 which will be mapped to the corresponding two elements in the grid. Both the approaches should work on the same basis.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sathya Srinivasan
Appian Employee
over 11 years ago
If you've deleted the 2 rows (i.e. row1 &3), your data is no longer 4 but 2. So next time you take an action, you are interested in just the remaining 2, right? You may want to check your delete logic.
On the other hand, if you're looking for just a running sequence where each number represents a row in a fixed fashion, then again, the same logic would work where-by you enumerate only once on the size of the array and persist (or map) the value against the rows. When you delete row 1 & 3, this array will be made of row 2 and 4 which will be mapped to the corresponding two elements in the grid. Both the approaches should work on the same basis.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data