function get (context) {
var mySalesOrderSearch = search.create({
type: 'invoice',
columns: ['total']
});
var dato = mySalesOrderSearch.run()._getResultset[12];
return dato.columns[0].name+'';
}
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
battk
01/27/2020, 5:03 PM
_getResultSet is not the supported way to get search results
battk
01/27/2020, 5:04 PM
in general, _ in front of a function name means internal use only
w
Wilmer Rafael Hernandez
01/27/2020, 5:34 PM
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)