Skip to content
Snippets Groups Projects
onActionProcess.js 705 B
import("system.neon");
import("TopicTree_lib");
import("system.vars");

var selection = vars.get("$sys.selectionRows")[0];
var topicTreeid = selection["#UID"];
var sortingHelper = JSON.parse(selection.sortingHelper);
var currentLayer = TopicTreeUtils.getLayer(selection.SORTING_LAYER_1, selection.SORTING_LAYER_2, selection.SORTING_LAYER_3, selection.SORTING_LAYER_4, selection.SORTING_LAYER_5, selection.SORTING_LAYER_6);
var assignedTo = selection.ASSIGNEDTO == "" ? $TopicTreeConstants.TOPTOPIC() : selection.ASSIGNEDTO;

TopicTreeUtils.movePosition(topicTreeid, $TopicTreeMoveDirections.TOP(), sortingHelper.maxSortingValue, assignedTo, sortingHelper.ownSortingValue, currentLayer);
neon.refreshAll();