Here now If I click on the delete icon, then it should disappear from the list. How achieve this ? The child component is cardlayout.
Discussion posts and replies are publicly visible
Not sure how you have implemented it, but if you are using foreach() you can use remove() function to remove the particular item using fv!index or fv!item the list upon which the UI is iterating.
The implementation is very simple on the parent component iterate the foreach and build the child component. Now the delete button is on the child component on click of the delete button how to remove the item from the list that uses in for-each in the parent component.
You will have to pass the data into the child component using a rule input. Then you can manipulate the data living in the parent component from the child.
Blog post: appian.rocks/.../
Can you please tell me what you want to delete?
As Soma mentioned you can simply use the remove() function to eliminate the item. In case you are planning to keep the item but not display on the screen when delete action is performed you may use any Boolean field to determine the status and display on conditional basis.
a!save(fv!item.isActiv(field that hold the boolean value), false()) /*To display on conditional basis*/ a!save(local!data, remove(local!data, fv!index)) /*Remove the item from the list*/ The above will be used in the saveInto parameter of the dynamic link given to the delete icon.