Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cgillis-aras
Last active April 24, 2019 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgillis-aras/6c036ff0af293082ef541570981f46d4 to your computer and use it in GitHub Desktop.
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
// 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