Created
February 1, 2019 21:50
-
-
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.
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
// 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