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
}
},