【发布时间】:2017-05-25 15:00:54
【问题描述】:
如果这是一个愚蠢的问题,我深表歉意,但我是 NetSuite 的新手,并且注意到他们的文档绝对是可笑的,可怕的,令人作呕的。除了所有的幽默和苦涩之外,我找不到 SuiteAnswers 中应该存在的细节。我可以找到字段或记录类型,但它没有显示可用于这些类型的选项。它只是显示要调用哪些方法来返回字段或记录。
所以我在培训指定的 fieldChanged 事件中使用了它,下面是我所拥有的。
function fieldChanged(context) {
debugger;
var customer = context.currentRecord
if (context.fieldId == 'custentity_apply_coupon') {
var field = record.getField("custentity_apply_coupon");
if (record.getValue("custentity_apply_coupon") == true) {
reord.getField("custentity_coupon_code").isDisabled = false;
}
else{
reord.getField("custentity_coupon_code").isDisabled = true;
}
field.isDisabled = false;
}
}
【问题讨论】:
标签: netsuite suitescript