Discussion posts and replies are publicly visible
Hello appian1997 You might have referred edit, remove on an editable grid on Documentation hopefully, so suggest the below.
In your component richTextDisplayField inside the a!richTextIcon in the link parameter use the below
link: a!dynamicLink(
saveInto: a!save(fv!item.fieldIsActive, false())
)
instead of remove()
that would help. If you are not having any field as isActive i would recommend to add it, as it would be helpful for such situations. In the showWhen parameter of your row please add the isActive field to define it accordingly.
What do you mean with "soft delete"? A "undo" function in the UI, or only a deactivation of data in the DB?
"Soft delete" means data should not be removed from database after once I clicked on delete icon in interface. Row should only be removed from interface until "Isdelete(boolean type field in database) value is 1".
I want to delete and update the rows in the editable grid. Deleting the data from interface should not affect the database.
Only the value of field "isdeleted" should change from o to 1. "1" if data has been deleted from interface and "0" id data is not deleted
Thanks for reply.
appian1997 said:I want to delete and update the rows in the editable grid.
Then you would simply make the grid not show a row entry for rows in the data where i.e. "fv!item.isDeleted = 1".
Exactly what I have mentioned in my reply above, you can use showWhen and Hide the row. once the value of your isDeleted field is updated with 1
Hm ... that is the default. Appian does not do anything to your database until you write data back using the writeRecords() function or the Write Records smart service.
For this to work, you do not need to add any fields.
Thanks a lot