Skip to content

Instantly share code, notes, and snippets.

@NithinMahesh1
Created May 6, 2020 20:52
Show Gist options
  • Save NithinMahesh1/afda493d2a621401c8114f9edbb461f4 to your computer and use it in GitHub Desktop.
Save NithinMahesh1/afda493d2a621401c8114f9edbb461f4 to your computer and use it in GitHub Desktop.
Method to run Graph Nav Action via SideNav
return ModulesManager.using(
['aras.innovator.GraphView/GraphWindowView',
'aras.innovator.core.ItemWindow/DefaultItemWindowCreator'
], function(View, Creator) {
require(['GraphView/Scripts/GraphDataLoader'], function(GraphDataLoader) {
inArgs = '' || {
gvdId: ''
};
inDom = item;
var view = new View(inDom, inArgs);
var creator = new Creator(view);
creator.SetWindowId(item.getAttribute('id') + (inArgs.gvdId || 'Default'));
return creator.ShowView();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment