Skip to content

Instantly share code, notes, and snippets.

@cgillis-aras
Created November 3, 2017 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgillis-aras/558bcaf6046834e2afc02b8f848519c6 to your computer and use it in GitHub Desktop.
Save cgillis-aras/558bcaf6046834e2afc02b8f848519c6 to your computer and use it in GitHub Desktop.
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