whats the use of oncelledit

divyahari
Kilo Explorer

i wanted to know whats the use of oncelledit

2 REPLIES 2

Michael Fry1
Kilo Patron

It's the only type of client script that works in a list view.

manali harmalka
Kilo Guru

Hi,

An onCellEdit() client script runs when the list editor changes a cell value. The onCellEdit() client script must specify these parameters.

  • sysIDs: an array of the sys_ids for all items being edited.
  • table: the table of the items being edited.
  • oldValues: the old values of the cells being edited.
  • newValue: the new value for the cells being edited.
  • callback: a callback that continues the execution of any other related cell edit scripts. If true is passed as a parameter, the other scripts are executed or the change is committed if there are no more scripts. If false is passed as a parameter, any further scripts are not executed and the change is not committed.
Note:onCellEdit()client scripts do not apply to dashboard list widgets.
 
Also refer below community thread for understanding of onCellEdit client Script with example.
 
Mark as correct or helpful as per impact of answer.
 
Regards,
Manali H.