hi all, for the case below, how to do getValue in ...
# suitescript
d
hi all, for the case below, how to do getValue in map function ? Thanks
Copy code
function getInputData() {
  return search.load(...);
}

function map(){
  howtodo.getValue('xxx');
}
d
make use of the mapcontext.key and mapcontext.values mapcontext will be a arguement in map() function
d
i tried JSON.parse(mapcontext.value).values.getValue('xxxx') but it didn't work
d
Treat it like object