import("Classification_lib"); import("system.neon"); import("system.vars"); import("system.result"); //no Translation since the same logic as in the Keywords applies (Admin User is able to change the title) //only when new, since it shouldn't be possible anymore to move the classificationTypes to another group, but the user should be able to rename a group if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { var objectType = vars.get("$field.OBJECT_TYPE") if (objectType) { var obj = ClassificationUtils.getAllGroups(objectType); result.object(obj); } }