Help with onCellEdit client script.

Abhijit Das7
Tera Expert

Hi Everyone,

 

I have to write onCellEdit client script. My requirment is that only assigned to user should be able to close the task (sc_task) in list view and all other users should not be able to close task in list view,

 

Please suggest something.

 

Thanks in advance

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Abhijit Das7 ,

The need for onCellEdit is questionable but suggestion would be to go with an before update business rule on Catalog task table where you can check for Item & then abort the action by displaying error message instead of alert.

This would not inovlve any coding as well. Something as below.

1. Business rule Replace your catalog item and conditions accordingly. Not item field is dot-walked from Request item table.

SandeepDutta_0-1713262469269.png

 

SandeepDutta_1-1713262469273.png

 

 

View solution in original post

1 REPLY 1

Community Alums
Not applicable

Hi @Abhijit Das7 ,

The need for onCellEdit is questionable but suggestion would be to go with an before update business rule on Catalog task table where you can check for Item & then abort the action by displaying error message instead of alert.

This would not inovlve any coding as well. Something as below.

1. Business rule Replace your catalog item and conditions accordingly. Not item field is dot-walked from Request item table.

SandeepDutta_0-1713262469269.png

 

SandeepDutta_1-1713262469273.png