我已经在netsuite中创建了一个表单,它在发布之后应该重定向到选定的记录。这没有发生 - 我做错了什么?Netsuite表单不重定向
if (request.getMethod() == 'GET') {
var slcustomer = form.addField('custpage_selectfield', 'select',
'Customer', 'customer');
form.addSubmitButton('Submit'); //For submiting as i will check for post back
response.writePage(form); //Write the form or display the form
} else {
if (request.getMethod() == 'POST') {
var task = request.getParameter('slcustomer');
nlapiSetRedirectURL('RECORD', 'task', null, false);
}
}
var form = nlapiCreateForm('My Custom Form',false); PLZ解释你为什么给予虚假参数。 –
nlapiSetRedirectURL('RECORD','task',null,false);在从任务中删除''之后,它也不会在所需的记录中出现............而是抛出n个错误,即标识符 –
您是否试过放置上述代码片段。你还在犯错误吗? – Rockstar