我正在努力寻找一种方法来向 Suitelet 添加一个按钮,该按钮调用同一个套件中的另一个函数。我已经尝试了很多事情,但我无法得到任何工作。我还尝试创建一个客户端脚本并调用客户端脚本,但该解决方案的问题是我需要从客户端脚本调用 Suitelet 中的另一个函数。
function Image(request, response){
var form = nlapiCreateForm("Today's Checks", true);
function next(count){
//code here
showImage(imageId);//call to another function
}
form.addButton('custpage_next','Next',"next();");
response.writePage(form);
showImage(id){
//more code . . .
}
}