Created
November 3, 2017 20:47
Star
You must be signed in to star a gist
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
// 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