2016-11-24 84 views
0

在用GET請求我有以下鏈接如何通過對Post請求的URL參數的NetSuite Suitelet

https://system.sandbox.netsuite.com/app/site/hosting/scriptlet.nl?script=22&deploy=1&locationId=&vendorId=120&parentId=

當POST請求的URL更改

https://system.sandbox.netsuite.com/app/site/hosting/scriptlet.nl

及參數迷路了。我如何保持參數發佈請求。

通過POST請求我的意思是下面的代碼

if (request.getMethod() == 'GET') 
    { 
     createUI(); // Just create the UI 

    }else{ 
     createUI(); // create UI and process the data in post request 
    } 

回答

1

我相信你仍然可以使用的request.getParameter獲取參數值的其他部分(「locationid」)