Last active
November 6, 2017 14:37
-
-
Save cgillis-aras/fa0704b43c15d5e479be5f2f30c0faf6 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
// We need to pass the ID of the form into the dialog | |
var formNd = top.aras.getItemByName("Form", "Dialog Example", 0); | |
// Set the arguments being passed to the dialog | |
var param = { | |
title: "Dialog Example", | |
aras: top.aras, | |
formId: formNd.getAttribute("id"), | |
isEditMode: true | |
}; | |
// Set the size of the resuling dialog | |
var options = { | |
dialogWidth: 500, | |
dialogHeight: 250 | |
}; | |
// Open the dialog | |
var topWnd = top.aras.getMostTopWindowWithAras(); | |
var wnd = topWnd ? topWnd : window; | |
var res = wnd.aras.modalDialogHelper.show('DefaultModal', wnd, param, options, 'ShowFormAsADialog.html'); | |
if (res) { | |
alert(res.usersName + " loves learning about modal dialogs!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment