Instantly share code, notes, and snippets.

Embed
What would you like to do?
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