Hi Community,
I tried to override the List page menu in Freedom UI. it successfully worked for edit and copy options. But it won't work for the delete option.
"rowToolbarItems": [
{
"type": 'crt.MenuItem',
"caption": 'DataGrid.RowToolbar.Open',
"icon": 'edit-row-action',
"clicked": {
"request": 'crt.UpdateRecordRequest',
"params": {
"itemsAttributeName": "Items",
"recordId": "$Items.PDS_Id",
},
"useRelativeContext": true
}
},
{
"type": 'crt.MenuItem',
"caption": 'DataGrid.RowToolbar.Copy',
"icon": 'copy-row-action',
"clicked": {
"request": 'cfx.CustomCopyRecordRequest',
"params": {
"itemsAttributeName": "Items",
"recordId": "$Items.PDS_Id",
},
//"useRelativeContext": true
}
},
{
"type": 'crt.MenuItem',
"caption": 'DataGrid.RowToolbar.Delete',
"icon": 'delete-row-action',
"clicked": {
"request": 'crt.RemoveRecordRequest',
"params": {
"itemsAttributeName": "Items",
"recordId": "$Items.PDS_Id",
},
"useRelativeContext": true
}
},
Like
Hi Rakshith,
Indeed the delete handler cannot be overwritten, tested in the latest 8.0.8 build. I will create a task for our R&D team to make it possible to customize the logic of this handler. Meanwhile if possible use a business process that is triggered upon record's deletion (it should be marked as a non-background process (start signal of a business process)).
Thank you for reporing this issue to us and making the app better!