function get (context) { var mySalesO...
# suitescript
w
function get (context) { var mySalesOrderSearch = search.create({ type: 'invoice', columns: ['total'] }); var dato = mySalesOrderSearch.run()._getResultset[12]; return dato.columns[0].name+''; }
w
perfect, but as the search throws a list inside an object and I want to access the list columns within _getResultSet as seen in the image. I do the search in client mode and if I get to the data but in restlet mode no
b
_getResultSet is not the supported way to get search results
in general, _ in front of a function name means internal use only
w
ahh well, I didn't know what that meant _, even though I already used resultset without the script and still doesn't let me access the column, so I access "run (). Resulset [0]. (here it just lets me access the id but not the column or cell list)