creating custom list porlets in netsuite -


i have been playing around making custom portlets in netsuite, im having trouble displaying results saved search in portlet columns

function customportlet1(portlet, column) {     portlet.settitle('portlet test');     portlet.addcolumn('vendtype', 'text', 'name', 'left');     portlet.addcolumn('account', 'text', 'account', 'left');     portlet.addcolumn('type', 'text', 'type', 'left');     portlet.addcolumn('amount', 'currency', 'amount', 'right');      var cols = new array();      cols[0] = new nlobjsearchcolumn('vendtype', null, null);     cols[1] = new nlobjsearchcolumn('account', null, null);     cols[2] = new nlobjsearchcolumn('type', null, null);     cols[3] = new nlobjsearchcolumn('amount', null, null);      var results = nlapisearchrecord('transaction','customsearch1106' , null, 'cols');      for(var = 0; < results.length; i++)         {         logexec("loop " + results[i]);         portlet.addrow(results[i]);         } } 

i think im using porlet.addrows wrong, im not sure. going through debug logs nlapisearchrecord working because running loop 7 times number of results should finding. problem believe in displaying said results.

edit:

i found problem, have incorrect search filter field internal id "vendor : name" not vendtype. 1 know is?

all vendor fields listed here internalid. https://system.netsuite.com/help/helpcenter/en_us/recordsbrowser/2012_2/records/vendor.html.

have tried altname?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -