netsuite 中的 fieldChanged 函数

fieldChanged function in netsuite

字段更改功能 如果文本字段中的值更改为相同的值(例如:旧值 = "ABC",新值 = "ABC"),脚本会 字段更改函数是否触发?

nlapiSetFieldValue

一些附加信息:

字段名:

String - the name of the field being set

value: String - the value the field is being set to

firefieldchanged: Boolen - if true then the fieldchange script for that field is executed. (Only available in Client SuiteScript)

设置给定字段的值。 此 API 可在 beforeLoad 脚本期间用于初始化新记录或非存储字段上的字段脚本。 nlapiSetFieldValue 仅在客户端和用户事件套件脚本中可用。

每当您更改 textfield 的值时,您将调用 fieldChanged 事件,即使您保持与以前相同的名称也是如此。

如果您询问的是客户端脚本事件字段更改,如果我没记错的话,这只会在用户更改 UI 中的字段值时触发。但如果 fireFieldChange 参数设置为 True,此事件也可以由 nlapiSetFieldValue 和 nlapiSetCurrentLineItemValue 触发。