netsuite - How to access the search LookupFields result -


below search code. i'm searching invoice number using invoice internal id.

what right way access lookupfields search result?

var invoicenumber = fieldlookup.value; 

i'm using above line "invoicenumber" empty. help.

var fieldlookup = search.lookupfields({                     type: search.type.invoice,                     id: invoiceid,                     columns: 'tranid'                 });                  var invoicenumber = fieldlookup.value; 

it fieldlookup.tranid. lookupfields returns object object's keys columns , object's values column values.

check out video more details on field lookups in ss2.0: https://www.youtube.com/watch?v=_fs2thudemq


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -