I am trying to create a column on my a!gridField that contains the REMOVE icon.

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

Parents
  • 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.
Reply
  • 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.
Children
No Data