Skip to content

Instantly share code, notes, and snippets.

@cgillis-aras
Created November 3, 2017 20:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cgillis-aras/f6b0b02b45c95cf6d0a5cb4a81edc0f1 to your computer and use it in GitHub Desktop.
// Set the arguments being passed to the dialog
var param = {
title: "Dialog Example",
aras: top.aras,
header: "Our cool new dialog of an HTML Page!",
isEditMode: true,
dialogWidth: 500,
dialogHeight: 250,
content: '../customer/test_page.html'
};
// This will be called after the dialog is closed
function callback(res) {
if (res) {
alert(res + " loves learning about new opening HTML pages as dialogs!");
}
};
// Open the dialog
var topWnd = top.aras.getMostTopWindowWithAras();
var wnd = topWnd ? topWnd : window;
wnd.ArasModules.Dialog.show('iframe', param).promise.then(callback);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment