Hello,
How could I prevent a user from opening a record? We do not want the edit page to be openable, but only the section to be accessible. So I would like to remove the open button, copy button, and the double click functionality that opens the record.
Any help appreciated, thanks!
Like
Dear Tyler,
Could you please specify your business task, maybe there would be an easier way of doing it? The way you've described it, user would be able to display on a grid any column and still see full information about the record. Is this the desired behavior?
Dennis Hudson,
Yes, that is the desired behavior. It is just a log of data. There is no need to interact with it other than view/export/import.
Dear Tyler,
You can disable opening the record by emptying the openCard method in section schema:
openCard: Ext.emptyFn
To remove Open button you would need to remove it in the diff of the section schema:
diff:[
{
"operation": "remove",
"name": "DataGridActiveRowOpenAction"
}
]
DataGridActiveRowCopyAction - for copy
DataGridActiveRowDeleteAction - for delete