Aras 配置开发分享,弹出搜索对话框
Aras 配置开发分享,弹出搜索对话框
var param = {
aras: top.aras,
itemtypeName: 'Part', // tbd: use inArgs
multiselect: false,
type: 'SearchDialog',
dialogHeight: 450,
dialogWidth: 700,
resizable: true
};
var searchedItem;
var callback =function(dlgRes){
if(!dlgRes) {
return;
}
searchedItem = dlgRes.item;
if(!searchedItem){
return;
}
var keyed_name = top.aras.getKeyedNameEx(searchedItem);
var table = getFieldByName("searchResult").getElementsByTagName("input");
table.setAttribute("value", keyed_name);
};
var wnd = top.aras.getMainWindow();
wnd = wnd === top ? wnd.main : top;
wnd.ArasModules.Dialog.show('iframe', param).promise.then(callback);
页:
[1]