I cant seem to extract the "documentnumber" contai...
# suitescript
c
I cant seem to extract the "documentnumber" containing the workorder with this search within my script, is anybody able to spot the error?? Its the TranID that im trying to get, but it just returns null.
b
the parameters to Result.getValue should match those of search.createColumn
c
@battk they do tho?
b
what parameters did you pass to getValue?
c
trainid
b
exact code please
c
message has been deleted
i already posted all the code
at the top of the thread
b
and the code you are using to create the filter?
c
message has been deleted
b
to be clear, im trying to point you to the lines of code that you are having problems with
c
this?
message has been deleted
b
in this particular case, you need to identify lines which are not the same
c
im sry but i dont quite understand, can you be try to explain it in another way?:)
b
the parameters used for getValue need to match those of createFilter
im telling you they arent
in your code
and you need to look closer if you think they are
c
message has been deleted
are you talking about this?
b
whops, wrong function
createColumn must match getValue
c
message has been deleted
name: "tranid"
message has been deleted
tranid on get value
does those not match?
b
lets be clear here, your parameter to createColumn is an object
with 3 keys and value pairs
your parameter to getValue is an object, with 1 key and value pairs
they dont match
c
what should it be then?
b
the parameters used for getValue need to match those of createColumn
c
message has been deleted
Thanks man, sry for not understanding 😄
b
the safer form is to use Result.getValue(column)
the version of getValue you are currently using will fail you for formula columns
c
thanks i will change that then