带文本字段输入的 NetSuite 对话框 (SuiteScript 2.0)
NetSuite dialog box with text field input (SuiteScript 2.0)
使用 SuiteScript 2.0,您似乎可以使用其 UI 框架(使用 N/ur/dialog 模块)创建 alert/confirmation 框。有谁知道是否有办法使用 SuiteScript API 在警告或确认框中包含一个文本输入字段(用户可以在其中输入)?
使用 clientscript 将此功能添加到按钮:
function promptForInput(){
var theResponse = prompt('Type now');
alert('User typed ' + theResponse);
}
官方不支持这个,但是看到N/ui/dialog基本上是Ext.js上的一个包装函数,可以使用下面的方法来创建一个NS风格的输入框:
Ext.Msg.prompt('Title', 'Message', function(btn, text) {
if (btn == 'ok') {
alert('you said ' + text);
}
});
现在有一个更好的方法:使用我最近发布的 NetSuite Input Dialog 模块。干杯。
使用 SuiteScript 2.0,您似乎可以使用其 UI 框架(使用 N/ur/dialog 模块)创建 alert/confirmation 框。有谁知道是否有办法使用 SuiteScript API 在警告或确认框中包含一个文本输入字段(用户可以在其中输入)?
使用 clientscript 将此功能添加到按钮:
function promptForInput(){
var theResponse = prompt('Type now');
alert('User typed ' + theResponse);
}
官方不支持这个,但是看到N/ui/dialog基本上是Ext.js上的一个包装函数,可以使用下面的方法来创建一个NS风格的输入框:
Ext.Msg.prompt('Title', 'Message', function(btn, text) {
if (btn == 'ok') {
alert('you said ' + text);
}
});
现在有一个更好的方法:使用我最近发布的 NetSuite Input Dialog 模块。干杯。