Core
09/03/2023, 4:20 PMAnthony OConnor
09/03/2023, 5:06 PMgetvalue
instead of getValue
... I think this should work, but you obviously need to change any code that looks at data
to use the itemId/ itemName instead of just item.
if (result.getValue(columns[1]) !=0) {
data.push({
itemId: result.getValue(columns[0]),
itemName: result.getText(columns[0]),
qty: result.getValue(columns[1]),
amount: result.getValue(columns[2])
});
}
Core
09/03/2023, 5:17 PMAnthony OConnor
09/03/2023, 5:21 PMAnthony OConnor
09/03/2023, 5:23 PMAnthony OConnor
09/03/2023, 5:26 PMAnthony OConnor
09/03/2023, 5:26 PMAnthony OConnor
09/03/2023, 5:28 PMif (result.getValue(columns[1]) !=0) {
data.push({
itemId: result.getValue({
name: 'item',
summary: search.Summary.GROUP
}),
itemName: result.getText({
name: 'item',
summary: search.Summary.GROUP
}),
qty: result.getValue(columns[1]),
amount: result.getValue(columns[2])
});
}
Core
09/03/2023, 5:41 PMec
09/03/2023, 8:10 PMCore
09/05/2023, 12:44 AMCore
09/05/2023, 12:45 AMec
09/05/2023, 3:29 AM