How to make related list "Affected locations" read only on incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 07:38 AM
Hi All,
How to make related list called "Affected locations" should be Read only on incident form(for ess view),when the incident state is resolved/closed.
Any help would be appreciated . Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 09:58 AM
Hi,
You can do this by Right Click on the Related List Header and then select Configure-->List Control as shown below:
Then search for the field "Omit Edit Condition". If not there add it to the Form Layout of List Control by Right Click on the Header and select Configure-->Form Layout and write the script as below:
Script:
answer = ((parent.state =='6') || (parent.state =='7')) ;
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2017 09:34 AM
Hi shloke,
Sorry for the delay and Thanks for the reply.
I just simply followed the above step.That's perfect.
I have one more question related to this : How to make all the fields should be read only on the records (which is under the related list "Affected Locations") .
i.e.,when the user clicks on the record under related list,it should be Read only(non editable).How can i acheive this one?
Any help would be appreciated.Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2017 09:58 AM
Hi,
For Making the Related List Record as Read Only, you need to Write an ACL with Operation as "list_edit" on the Related List Table. For example in our scenario I have written it on Incident Task Table. Please find the screen shot for the same:
So with the help of the above ACL, it won't allow the USer to edit the Records when the Incident State is Resolved or Closed.
However you need to configure another set of ACL to Restrict the Users from Updating the Record from the form as the above ACL would stop the users from List Editing. So you need to configure a Write operation ACL on the Incident Task table as shown below:
This will restrict them from updating the Records from Form also if the Parent Incident State is Resolved or Closed.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2020 03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 12:00 PM
Hi,
Did you got a chance to Test the Solution provided for your query.If your query is Resolved would you mind marking the answer as correct and close the thread.
Regards,
Shloke
Regards,
Shloke