Created
February 11, 2019 18:18
-
-
Save EliJDonahue/ab5743429bbc9ce87435b33d8b643628 to your computer and use it in GitHub Desktop.
Sample method code for opening a specific graph view
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
return ModulesManager.using( | |
['aras.innovator.GraphView/GraphWindowView', | |
'aras.innovator.core.ItemWindow/DefaultItemWindowCreator' | |
]).then(function (View, Creator) { | |
require(['GraphView/Scripts/GraphDataLoader'], function (GraphDataLoader) { | |
inArgs = { | |
// Specify the ID of the GVD to be used | |
gvdId: 'F04DC7C054CA48DA886A0B336BD61E37' | |
}; | |
var view = new View(inDom, inArgs); | |
var creator = new Creator(view); | |
creator.SetWindowId(inDom.getAttribute('id') + inArgs.gvdId); | |
return creator.ShowView(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment