How am I able to pull up the totals column from a ...
# suitescript
s
How am I able to pull up the totals column from a saved search when I turn this script or load it? I am trying to display those on a pdf template
a
Those totals are dynamically calculated, and you must do the same in your script or advanced PDF template.
s
@alien4u I think I am almost there, but for some reason I can’t make the arithmetic work even trying to make it as an integer or num, so far S column is what I’m working on
a
How you code looks like?
s
at the moment, this , I can’t make it ?c, ?string.number work
a
I assume you declared
totalSmall
outside the <#list right?
s
yes, initialized to =0
a
summary.sum_small?number
s
and one of the errors when playing around converting, is that the summary is not turning into a number/integer but any conversion I tried so far is met with error
ahhh!
a
To Sum try: • summary.sum_small?number Then to show the total: • totalSmall?string.currency
s
had the td and the iterator to ?number
and it worked
i only tried one and the other
thank you!!