Skip to content

Instantly share code, notes, and snippets.

@EliJDonahue
Created February 11, 2019 18:18
Show Gist options
  • Save EliJDonahue/ab5743429bbc9ce87435b33d8b643628 to your computer and use it in GitHub Desktop.
Save EliJDonahue/ab5743429bbc9ce87435b33d8b643628 to your computer and use it in GitHub Desktop.
Sample method code for opening a specific graph view
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