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 input = getFieldByName("effective_date"); | |
input.getElementsByTagName("input")[0].disabled = true; | |
input.getElementsByTagName("input")[1].disabled = true; | |
input.getElementsByTagName("input")[1].src = "../images/calendar-disabled.svg"; |
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(); | |
Item part = inn.newItem(); | |
/* All of the pairs of functions below are equivalent */ | |
// Set the type attribute | |
part.setAttribute("type", "Part"); | |
part.setType("Part"); | |
// Set the action attribute | |
part.setAttribute("action", "get"); |
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
/* | |
* We need to wait for the item's form to fully load before we switch the window to edit mode. | |
* Luckily, aras.uiShowItem returns a Promise that happens to resolve once the window loads. This | |
* means we can pass in a function using Promise.then(ourFunction) that will be called after the | |
* Promise resolves and the item window is loaded. | |
*/ | |
aras.uiShowItem("Part", "64B2100E21B44980B42FB445951310BF").then(function() | |
{ | |
// Look up the tab that was just loaded | |
var myItemWin = aras.uiFindWindowEx("64B2100E21B44980B42FB445951310BF"); |