get value of specific column in selected row

get value of specific column in selected row

MoeYehyaMoeYehya Posts: 15Questions: 8Answers: 0
edited December 2022 in Free community support

hello, i am selecting row in my table this way.
how can i get the value of specific column by column name (ex: Name, Desc, etc.. )
after adding "selected" class.

table.on('click', 'tr', function () {
if (window.$(this).hasClass('selected')) {
window.$(this).removeClass('selected bg-info');
AppRuntime.setlookupId(0)
} else {
table.$('tr.selected').removeClass('selected bg-info');
window.$(this).addClass('selected bg-info');
let lookupId = window.$(this).children().first().text()
AppRuntime.setlookupId(lookupId)
}
});

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.