Skip to content

Instantly share code, notes, and snippets.

@cgillis-aras
Created February 1, 2019 21:50
Show Gist options
  • Save cgillis-aras/cadbcb2624f8888699a6506483d20e1d to your computer and use it in GitHub Desktop.
Save cgillis-aras/cadbcb2624f8888699a6506483d20e1d to your computer and use it in GitHub Desktop.
Sample code for displaying the content of an HTML file form a new tab in Aras Innovator.
// To open any window, it seems the aras object needs an item, so we're creating
// a completely blank item with a new ID that we'll use to lookup which window was just opened
var newItem = aras.IomInnovator.newItem("", "");
var newItemId = aras.generateNewGUID();
newItem.setID(newItemId);
aras.uiOpenEmptyWindowEx(newItem.node);
var newWindowName = aras.mainWindowName + "_" + newItemId;
var newWindow = aras.windowsByName[newWindowName];
newWindow.frameElement.src = "./test.html";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment