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.
nlobjForm and writePage error "There are no records of this type"
Hey all -
Tearing my hair out a bit this morning (what's left anyway) over this issue.
I have a simple Suitelet that I am trying to create with an nlobjForm object. It is called via a client script which is called via a button click (custom button added via UE script). Pretty typical workflow, and one I have done numerous times.
Here is the client script:
function markPOShipped(id) { // redirect to suitelet var url = nlapiResolveURL('SUITELET', 'customscript_kw_markposhippedtrack', 'customdeploy_kw_markposhippedtrack'); url += '&id=' + id; document.location = url; } ...and here is the Suitelet script
function KW_markPOShippedAddTracking(request, response){ if (request.getMethod() == 'GET') { var form = nlapiCreateForm('Mark PO Shipped and Add Tracking'); response.writePage(form); } else { } } 0