<https://system.na2.netsuite.com/app/help/helpcent...
# suitescript
m
okay actually that literally only works for
trandate
, all of the other columns keep showing
null
as their value because their Summary is different than GROUP. I'm trying to pull the
search.Summary
in my loop (i.e.
forEach(columnTitle, index) { result.getValue({name: columnTitle, summary: search.Summary[index]}) }
but that isn't working.
search.Summary[anyInteger] is returning
typeof = undefined
and I haven't figured out how to get the
Summary
from the
Result
itself, is that possible?
m
result.columns
will give you an array of all the column objects, so you can do something like
result.columns[index].summary
m
ah great thanks! Is it typically necessary to include all of this info?
m
But you can also just pass the
column
object to
result.getValue()
, e.g.
result.getValue(result.columns[index])
m
that's a really nice shortcut, thanks!