如何在SuiteScript 2.0中的Before Load用户事件中获取当前URL?

问题描述 投票:0回答:1

有没有办法在SuiteScript 2.0中的Before Load用户事件中获取当前URL参数?

我试过document.location.hrefContext.form.location.href,但它不起作用。

suitescript2.0
1个回答
0
投票

beforeLoad的入口点通过http.ServerRequest参数为您提供context.request

 function beforeLoad(context) {
    var parms = context.request.parameters;
    if(parms) {
        // do stuff
    }
 }
© www.soinside.com 2019 - 2024. All rights reserved.