Search the Community
Showing results for tags 'tree .move item'.
-
The help page on the Edit Tree Items: Move Item Method states for "New Position": "Sets where to place the item in relation to the item whose tag you wire to New Parent. Wire a value of 0 (default) to place the item above the first child item, wire a value of 1 to place the item above the second child item, and so on. Wire a value of –1 to place the item under the last child item. If the value you wire to this input is greater than the number of child items under the parent item, the method places the item under the last child item." If I do not know in advance what the new position will be until the user chooses an item on the tree, what algorithm can take the selection row number and then adjust this "new position" value to move up by one row or down by one row? I can't just take the ActiveItemRowNumber and subtract one or add one to get the previous item-row-number or the next item-row-number and then take that value into the "Edit Tree Items.Move item" invoke node because the .Move item node does not work that way. Why it doesn't is beyond me. Nonetheless, I need a workaround to this issue. Any suggestions?