Created
November 3, 2017 20:48
-
-
Save cgillis-aras/558bcaf6046834e2afc02b8f848519c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var param = { | |
aras: top.aras, | |
type: 'SearchDialog', | |
dialogWidth: 700, | |
dialogHeight: 450, | |
itemtypeName: 'Part' | |
}; | |
function callback(res) { | |
if (res) { | |
var itemNumber = res.keyed_name; | |
alert("Part #" + itemNumber + " was selected"); | |
} | |
} | |
var topWnd = top.aras.getMostTopWindowWithAras(); | |
var wnd = topWnd ? topWnd : window; | |
wnd.ArasModules.MaximazableDialog.show('iframe', param).promise.then(callback); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment