Skip to content

Instantly share code, notes, and snippets.

@cgillis-aras
Created February 1, 2019 21:52
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/dd1fb4fced517a9af0f46d35996eeb6a to your computer and use it in GitHub Desktop.
Save cgillis-aras/dd1fb4fced517a9af0f46d35996eeb6a to your computer and use it in GitHub Desktop.
Sample code for displaying the content of an HTML file in a dialog within Aras Innovator
// Set the arguments being passed to the dialog
var param = {
title: "Test HTML",
aras: top.aras,
dialogWidth: 500,
dialogHeight: 250,
content: 'test.html' // Put path to HTML file here
};
// Open the dialog
var topWnd = top.aras.getMostTopWindowWithAras();
var wnd = topWnd ? topWnd : window;
wnd.ArasModules.Dialog.show('iframe', param);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment