I have this pseudocode in mind to log an error whenever the length of a cell value within the ItemNumber
column exceeds 10 characters. I would also like to display the offending row number as well.
Haven't got a chance to test this out fully, but is it possible?
Any help would be much appreciated!
let itemDesc = newTable.getColumnByName("ItemNumber")
for (let i = itemDesc.length - 1; i >= 0; i--) {
let event = itemDesc[i];
let rowNumber = ???
if (event.length > 10) {
console.log(`Character count exceeds 10 characters at Rows: ${rowNumber}`);
}
}