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
// Example of the standard way to set a Filter in an onSearchDialog event | |
var Filter = {}; | |
Filter["name"] = { filterValue: "%Admin", isFilterFixed: false }; | |
Filter["is_alias"] = { filterValue: "1", 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
var inn = this.getInnovator(); | |
var ident = inn.newItem("Identity", "get"); | |
var or = ident.newOR(); | |
// Search for our Admin Identities... | |
var and1 = or.newAND(); | |
and1.setProperty("name", "%Admin"); | |
and1.setPropertyAttribute("name", "condition", "like"); | |
and1.setProperty("is_alias", "1"); |
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
// Get the field we want to populate dynamically | |
var item = getFieldComponentByName('owned_by_id'); | |
// Override the default server call | |
item.component.request = function() { | |
var itemType = this.state.itemType; | |
var maxCount = this.state.maxItemsCount; | |
var label = this.state.label; | |
var req = |
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 is to account for the case where this dropdown accidentally gets added to a non-versionable item | |
const isVersionableItemType = options.itemType['is_versionable'] === '1'; | |
if (!isVersionableItemType) { | |
return { hidden: true }; | |
} | |
/* Query for the IDs of all generations */ | |
// Need the config ID to get all generations | |
// TODO: We could skip this step if we can get the config_id from the window, but it's not readily available | |
var configIdQuery = aras.IomInnovator.newItem(options.itemTypeName, "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
const itemType = options.itemType; | |
// Open up a classification dialog | |
var param = { | |
aras: aras, | |
isEditMode: true, | |
itemTypeName: itemType.name, | |
class_structure: itemType.class_structure, | |
dialogType: 'classification', | |
selectLeafOnly: 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 set_property = setRelatedItemProperty(relationshipID, "owned_by_id", "DBA5D86402BF43D5976854B8B48FCDD1"); | |
// At this point the value is set on the item in the dom, but it does not seem to appear in the grid | |
// By debugging into this function, the item also does not seem to be added to the grid at this point, so we'll need to handle this logic in a timeout | |
setTimeout(function(relID) { | |
var gridApp = this.gridApplet; | |
var columnName = gridApp.GetPropertyColumnName("owned_by_id"); | |
gridApp.SetCellValue(relID, gridApp.GetTrueColumnIndex(columnName), "Innovator Admin"); // <-- This should be the keyed_name of the item | |
}, 50, relationshipID); |
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 relationshipTabInfo = parent.relationships.relTabbar; | |
var currentRelationshipTabId = relationshipTabInfo.GetSelectedTab(); | |
var tabLabel = relationshipTabInfo.GetTabLabel(currentRelationshipTabId); |
NewerOlder