我正在尝试使用脚本记录上的客户端脚本按钮定义向当前记录添加一个按钮,但由于某种原因它找不到我的功能。我正在返回我的函数tryThis
and页面上有一个按钮,我在脚本记录中创建了相应字段中定义的函数tryThis
,但代码没有运行。这是我的脚本:
define (['N/currentRecord','N/search','N/record'] ,
function(currentRecord,search,record) {
function tryThis(context){
log.debug({
title: 'try this',
details: 'try this'
});
}
function pageInit(context) {
}
return {
pageInit: pageInit,
tryThis: tryThis
};
});
什么都没发生 :(
是的,脚本已部署。
如何在客户端脚本上使用此按钮?