Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Suitelet List & Client Script
Has anyone been able to add a button to a Suitelet that creates a List and run the function? It seems like the client script is simply not being loaded at all.
I've tries about everything I can think of and my browser is giving me an error that says "Uncaught ReferenceError: require is not defined".
/**
*@NApiVersion 2.x
*@NScriptType Suitelet
*/
define(['N/ui/serverWidget', 'N/search', 'N/runtime', 'N/url'],
function(ui, search, runtime, url) {
function onRequest(context) {
...
var list = ui.createList({
title: 'Funding Liability',
style: ui.ListStyle.REPORT,
clientScriptFileId: 1077191
});
...
list.addButton({
id : 'custpage_buttonId',
label : 'Test',
functionName : "dosomething"
});
...