Is it possible to make details read-only easily? I saw a similar but more specific question here: https://community.bpmonline.com/questions/disabling-add-button-detail-list - are there similar modifications that I can make to disable editing and deleting too? Even better - is there something like a single boolean flag that makes a detail read-only?
Like
Hello Carlos,
You can deny rights for adding/editing/deleting records for the detail object. As a result, detail object will be accessible only for reading.
You can find all needed information in our article on the academy web-site - https://academy.bpmonline.com/documents/administration/7-12/access-obje…
I would like to pay your attention, that in such case object will remain accessible for adding/editing/deleting records via business-processes and also for users that belong to the System administrators role.
Adding to what Dmitry S said, also you have to disable "Enter" keystroke and double click on a record.
Just add these 3 methods to your detail schema:
methods: { getAddRecordButtonVisible: () => false, addRecordOperationsMenuItems: () => false, editCurrentRecord: () => false }
(I see the date of the post, however think this info might be useful for someone else.)
Hi all,
I followed this guide to block all fields in edit page based on lookup: https://academy.creatio.com/documents/technic-sdk/7-15/how-block-fields-edit-page?_ga=2.187664111.630272924.1586155836-431934284.1586155836
But I got one issue: user can double click to open the detail and edit the contents. So how can I prevend the user double click to open the detail?
Phuong Akira,
This is what the
editCurrentRecord: () => false
line does in Artur's code snippet.