How delete a card from a list of cards

Certified Associate Developer

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

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Sowvik Roy

    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.

Children
No Data