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
6 replies
Subscribers
7 subscribers
Views
2714 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I am trying to create a column on my a!gridField that contains the REMOVE icon.
erickp
over 9 years ago
I am trying to create a column on my a!gridField that contains the REMOVE icon. When user clicks on it, it would remove the row from the table. Right now I have it working so that it display the REMOVE icon on the first row only but the other rows do not have it. It looks like I need to use apply() which I tried but couldn't make it work. I am attaching the piece of code for my gridField.
Anyone has an idea of what I am missing?
gridField.txt
OriginalPostID-181883
OriginalPostID-181883
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 9 years ago
I believe you need the data to be an array of a!documentImage() so yes you'll need to use apply() - but you'll want to move the a!documentImage() part of the expression out to a rule and apply that rule - but you'll also need to pass in the two arrays - data and token - to the rule as well, so that the remove link can actually remove the appropriate entry from each array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
See attached for an example. You may need to make some adjustments so that it works with a datasubset.
gridField.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
DAVID ELLNER
A Score Level 1
over 9 years ago
In combination with the approach provided above, you may want to consider using the a!applyComponents system function.
forum.appian.com/.../System_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
Quite right, I should have said a!applyComponents() rather than apply()
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Robert Shankin
Appian Employee
over 9 years ago
Hi Erick -
My comments in the following post might help:
forum.appian.com/.../e-161364
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
erickp
over 9 years ago
Thank you all. I will try to explore and will let you know if I am able to make it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel