Last active
April 24, 2019 14:15
-
-
Save cgillis-aras/6c036ff0af293082ef541570981f46d4 to your computer and use it in GitHub Desktop.
Code to demonstrate opening the classification dialog in Aras Innovator 11.0
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
// Trying to open the classification dialog programmatically | |
var ourItemTypeName = "Part"; // <-- Change this to your ItemType name | |
var ourItemType = top.aras.getItemTypeForClient(ourItemTypeName, "name"); | |
var param = { | |
aras: top.aras, | |
isEditMode: true, | |
itemTypeName: ourItemTypeName, | |
class_structure: ourItemType.getProperty("class_structure"), | |
dialogType: 'classification', | |
selectLeafOnly: true, | |
isRootClassSelectForbidden: true, | |
resizable: true | |
}; | |
var options = { | |
dialogHeight: 500, | |
dialogWidth: 350 | |
}; | |
// I'm not sure if "DefaultPopup" is supported in 11.0, so you can also try "DefaultModal" | |
aras.modalDialogHelper.show("DefaultPopup", top, param, options, "ClassStructureDialog.html"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment