Select check box only current row was selected and others unchecked

Hi,

I'm looking a way to select checkbox when the row is selected. here i want selection of current row only. so every time when i select a row only that rows check box will selected.

here I tried using row click row event handler and script but facing an error.

table1.selectRow({ mode: "key", key: currentRow.id});

also tried with the selectedRow.id or selectedSourceRow.id but facing same.
error - currentRow is not defined

Hey @Shailendra_Kumar ,
Firstly, create an empty variable, and then use this script:

table1.selectedDataIndex({
  mode: "index",
  index: variable1;
})

await variable1.setValue(table1.selectedDataIndex);