Get ID on Child Table

Good Day!

Im new here Please help How to get ID on child table.

Hello hope this will help you
JS:
cur_frm.cscript.data_id = function(doc, cdt, cdn){
var values = locals[cdt][cdn];
console.log(values.id)
}

Thank you very much sensei.