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
/** | |
* Retrieves a token from the Innovator auth server using the provided user credentials. | |
* Returns a new OAuth token string. | |
* | |
* @param creds An object containing credentials for connecting to an Innovator instance. | |
* @param {string} creds.url Innovator url. Ex: http://localhost/Innovator12 | |
* @param {string} creds.db Innovator database name. | |
* @param {string} creds.user User's login name. | |
* @param {string} creds.pwd MD5 hash of the user's password. | |
* |
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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"width": 290, | |
"height": 90, | |
"color": "#D8C6DA", | |
"padding": { | |
"left": 12, | |
"right": 12, |
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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"width": 290, | |
"height": 90, | |
"color": "#D8C6DA", | |
"padding": { | |
"left": 12, | |
"right": 12, |
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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"width": 200, | |
"height": 90, | |
"color": "#D8C6DA", | |
"padding": { | |
"left": 12, | |
"right": 12, |
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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"width": 200, | |
"height": 90, | |
"color": "#F7F7F7", | |
"padding": { | |
"left": 12, | |
"right": 12, |
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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"width": 200, | |
"height": 90, | |
"color": "#F7F7F7", | |
"padding": { | |
"left": 12, | |
"right": 12, |
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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"rows": [ | |
{ | |
"height": 20 | |
}, | |
{ | |
"height": 25 |
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); |
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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"width": 200, | |
"height": 90, | |
"color": "#FCDAC8", | |
"padding": { | |
"left": 12, | |
"right": 12, |
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
/** this method throws an alert that says whether a related item was picked or created **/ | |
// get the parent item | |
var parent_item = parent.thisItem; | |
// get the related item | |
var related_item = parent_item.getItemsByXPath("//Item[@id='" + relatedID + "']"); | |
if (related_item.getItemCount() > 1) | |
related_item = related_item.getItemByIndex(0); | |
NewerOlder