如何在 Netsuite Suitelet 中对 Post 请求传递 url 参数
How to pass url parameters on Post request in Netsuite Suitelet
在获取请求中我有这个 Url
当它是 post 请求时 url 更改为
https://system.sandbox.netsuite.com/app/site/hosting/scriptlet.nl
并且参数丢失。如何保留参数 post 请求。
post 请求我指的是下面代码的其他部分
if (request.getMethod() == 'GET' )
{
createUI(); // Just create the UI
}else{
createUI(); // create UI and process the data in post request
}
我相信您仍然可以使用 request.getParameter('locationid')
获取参数值
在获取请求中我有这个 Url
当它是 post 请求时 url 更改为
https://system.sandbox.netsuite.com/app/site/hosting/scriptlet.nl
并且参数丢失。如何保留参数 post 请求。
post 请求我指的是下面代码的其他部分
if (request.getMethod() == 'GET' )
{
createUI(); // Just create the UI
}else{
createUI(); // create UI and process the data in post request
}
我相信您仍然可以使用 request.getParameter('locationid')
获取参数值