How to make related list "Affected locations" read only on incident form

robinpaul
Kilo Contributor

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.

10 REPLIES 10

shloke04
Kilo Patron

Hi,



You can do this by Right Click on the Related List Header and then select Configure-->List Control as shown below:



find_real_file.png



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')) ;



find_real_file.png



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

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?


related list.png




Any help would be appreciated.Thanks in advance.


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:



find_real_file.png



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:



find_real_file.png



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


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Thank you so much. This solution helped a lot.

shloke04
Kilo Patron

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


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke