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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Script to show savedsearch results on clicking a button
Hi,
I would like to get a saved search results on clicking a custom button on estimate record. I have created suitelet and userevent scripts to load and show results of the savedsearch when the custom button is clicked. However when I click the button, a blank page is opening not the savedsearch results:mad: Can anyone please suggest where am I doing wrong.
Suitelet:
function Update_TermsandCond(request, response){
var recid = request.getParameter('id');
var rectype = nlapiGetRecordType();
if (recid != null && rectype != null) {
var rec = nlapiLoadRecord(rectype, recid);
var quoteid = rec.getFieldValue('tranid');
var quoteref = 'Quote' + ' ' + '#' + quoteid;
0