Status
Release Available |
Status |
Framework Name |
---|---|---|
4.1 |
Current |
Both Mui and Mint |
General
The remove method can be used to delete an existing record. For the remove crud operation to delete the records, the delete action has to be configured at the record level.
Note
This feature works only for the List view and Card view.
Example 204. Code JSON
{ "name": "deleteRecord", "actionType": "normal", "property": {}, "appearance": { "label": "delete", "style": "iconic" }, "successHandler": {}, "failureHandler": {}, "pendingHandler": {}, "handler": { "cruds": [ { "method": "remove", "source": "$state(CurrencyCS);", "value": { "id": "$this.attr(id);" } } ] } }
Where,
-
"source": "$state(CurrencyCS);":Actor to which the record data has to be deleted.
-
"value": { "id": "$this.attr(id);" }: Record data to delete.