Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Suitelet List Error
Hi,
I am able to complete a search and bind that data to some columns using the addrows() method. What I would like is to add an additonal column to the results which will contain a link to another suitlet on each row.
I have tried doing this with the following code:
var column = list.addColumn('internalid','text', 'Internal Id', 'LEFT'); column.setURL(nlapiResolveURL('RECORD','customer')); column.addParamToURL('id','id', true); list.addColumn('companyname','text', 'Company Name', 'LEFT'); list.addColumn('zipcode','text', 'Post Code', 'LEFT'); list.addColumn('suitletlink','text', 'Link', 'LEFT'); var returncols = new Array(); returncols[0] = new nlobjSearchColumn('internalid'); returncols[1] = new nlobjSearchColumn('companyname'); returncols[2] = new nlobjSearchColumn('zipcode'); var myresults = nlapiSearchRecord('customer', null, filters, returncols); for (var i=0; i < myresults.length; i++) { var row = new Array(); row['internalid'] = myresults[i].getValue('internalid'); row['companyname'] = myresults[i].getValue('companyname'); row['zipcode'] = myresults[i].getValue('zipcode'); row['suitletlink'] = myresults[i].getValue('internalid'); list.addRow(row); } 0