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
2689 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
I just saw you mention normal grid.
try this:- add a hidden numeric column to your grid and populate the data via this code
enumerate(yourCDT.size)
Save the value into an ACP (say rowIndexer)
on the DATA-> output, do difference(enumerate(cdt.length), acp!rowIndexer)
This will give you the index of the row that was deleted. You can use remove() function to remove this from the CDT array either in the same place or in a different script task.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sathya Srinivasan
Appian Employee
over 11 years ago
I just saw you mention normal grid.
try this:- add a hidden numeric column to your grid and populate the data via this code
enumerate(yourCDT.size)
Save the value into an ACP (say rowIndexer)
on the DATA-> output, do difference(enumerate(cdt.length), acp!rowIndexer)
This will give you the index of the row that was deleted. You can use remove() function to remove this from the CDT array either in the same place or in a different script task.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data