有没有办法告诉我们是否处于编辑或查看模式的netsuite记录?我尝试使用executionContext,但无论是查看还是编辑都是一样的,所以这不起作用 . 如果我处于编辑模式,我只想隐藏一些字段,如果我在视图中则显示它们 . 我正在使用suitescript 2.0 .
谢谢
该模式通过 type 属性传递给 beforeLoad 事件 . 该值是 context.UserEventType 的枚举 .
type
beforeLoad
context.UserEventType
function beforeLoad(context) { if (context.type === context.UserEventType.EDIT) { // ... } }
有关参考详细信息,请查看NS帮助页面“beforeLoad(scriptContext)”和“context.UserEventType” .
1 回答
该模式通过
type
属性传递给beforeLoad
事件 . 该值是context.UserEventType
的枚举 .有关参考详细信息,请查看NS帮助页面“beforeLoad(scriptContext)”和“context.UserEventType” .