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
const struct = [ | |
{ | |
a: [ | |
{ b: [{ c: [] }, { d: [] }] }, | |
{ | |
e: [{ f: [] }, { | |
g: [ | |
{ k: [{ l: [] }, { m: [] }] }, | |
{ n: [{ o: [] }, { p: [] }] } | |
] |
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
// MassReplace | |
// Create an Express ECO to replace a selected Part with another chosen Part in all parent assemblies | |
var inn = this.getInnovator(); | |
// Make sure only one item is selected | |
if (this.getItemCount() !== 1) { return inn.newError("Please select a single item"); } | |
// Launch a search dialog to select a replacement Part | |
// TODO: create a better UI |
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()); | |
wflItem = wflItem.apply(); |
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
Innovator inn = this.getInnovator(); | |
string identities = inn.getUserAliases(); | |
string aliasId = identities.Split(';')[0]; | |
this.setProperty("owned_by_id",aliasId); | |
return this; |
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
const list = [1, 2, 3, 4, 5] //...an array filled with values | |
const functionWithPromise = item => { //a function that returns a promise | |
return Promise.resolve('ok') | |
} | |
const anAsyncFunction = async item => { | |
return functionWithPromise(item) | |
} |
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
//create new Object | |
var Filter = new Object( ); | |
//Assign Filter | |
Filter["state"]={filterValue:"Released", isFilterFixed:true}; | |
return Filter; |
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
top.aras.uiShowItem("LAB_Cards", $(this).attr("cardId")); |
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
SELECT * | |
FROM ALS_Activity act | |
LEFT JOIN ALS_ActivityPredecessors pre | |
ON act.id = pre.source_id | |
WHERE pre.source_id IS NULL |
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
<link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" rel="stylesheet" type="text/css" /> | |
<div id="visualization" style="width:100%;height:100%;"></div> | |
<script> | |
require(["https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.js"], function (vis) { | |
var container = document.getElementById('visualization'); | |
var groupBy = function (xs, key) { | |
return xs.reduce(function (rv, x) { | |
(rv[x[key]] = rv[x[key]] || []).push(x); |
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
div[name='text7'] .sys_f_label{ | |
text-transform: none; | |
} |
NewerOlder