I have a IG with DA with javascript code
var i, selectedIds = "",
model = this.data.model;
for ( i = 0; i < this.data.selectedRecords.length; i++ ) {
selectedIds += model.getValue( this.data.selectedRecords[i], "DECA");
}
$s("P134_NR", selectedIds);
It works perfectly for IGs without the multiselect option checked. How to modify the code I paste to set an item value with the latest checked row?