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
var inn = this.getInnovator(); | |
var myBom = inn.newItem("Part","GetItemRepeatConfig"); | |
myBom.setAttribute("select","item_number,name"); | |
myBom.setID(this.getID()); | |
// test ID | |
//myBom.setID("E66A03962B24404B8F7EA7494B98A406"); | |
var partBom = myBom.createRelationship("Part BOM"); | |
partBom.setAttribute("select","related_id,quantity"); | |
partBom.setAttribute("repeatProp","related_id"); | |
partBom.setAttribute("repeatTimes","10"); |
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
var formName = "purchaseItem"; | |
var itemtype = this.getAttribute("type"); | |
var inn = this.getInnovator(); | |
var keyedname = this.getProperty("keyed_name"); | |
var instancedPart = this; | |
var title = itemtype + " " + keyedname | |
var win = aras.getMostTopWindowWithAras(window); | |
var formNd = aras.getItemByName('Form', formName); |
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
var partDefId = document.thisItem.getPropertyItem("definition"); | |
partDefId.fetchRelationships("Part AML"); | |
var select = document.getElementById("MainDataForm").availableitems; | |
for (var i = 0; i< partDefId.getRelationships("Part AML").getItemCount();i++){ | |
var value = partDefId.getRelationships("Part AML").getItemByIndex(i).getRelatedItem(); | |
select.options[i]=new Option(value.getProperty("name"), value.getProperty("id")); | |
} | |
return true; |
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
var returndata = { | |
"value":document.getElementById("MainDataForm").availableitems.value, | |
"label":document.getElementById("MainDataForm").availableitems.label | |
} | |
window.parent.dialogArguments.dialog.close(returndata); |
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
<!DOCTYPE html> | |
<head> | |
<style> | |
body { | |
width: 100%; | |
height: 100%; | |
} | |
#graph { |
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
<!-- | |
Copyright (c) 2016 - Aras Corp | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
// Retrieve the workflow item(s) | |
Innovator inn = this.getInnovator(); | |
Item wflItem = this.newItem("Workflow","get"); | |
wflItem.setAttribute("select","source_id,source_type"); | |
Item wflProc = wflItem.createRelatedItem("Workflow Process","get"); | |
wflProc.setAttribute("select","name"); | |
Item wflProcAct = wflProc.createRelationship("Workflow Process Activity","get"); | |
wflProcAct.setAttribute("select","related_id"); | |
wflProcAct.setProperty("related_id",this.getID()); |
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
// retrieve the document name | |
String documentName = this.getProperty("name"); | |
// retrieve the document id | |
String documentID = this.getID(); | |
// create the POST web request | |
var httpWebRequest = (HttpWebRequest) WebRequest.Create("https://hooks.slack.com/services/XXXXX/XXXXX/XXXXXXXXXX"); | |
httpWebRequest.ContentType = "text/json"; | |
httpWebRequest.Method = "POST"; |
NewerOlder