Community
Participate
Working Groups
For Lists currently there is an Integer Index parameter for a drag-action (per Indexpath), while for the selection by Indexpath Index is a String. String index parameter allows to access sub-nodes (e.g. 1/1). For a drag-action its not possible, so I cannot reach the element I need.
I'm afraid I don't quite understand: do you have a list with nested entries? The index should simply be e.g. '1' or '4' to select the 1st or 4th item. If the list has nested items, then we'd have to add that support separately.
Created attachment 254362 [details] The image of list with nested items Hi, yes, the list contain nested entries (see attached image), only child nodes can be dragged. It would be nice to support such lists. Now the string index to access sub-nodes (e.g. 1/1) leads to "invalid index" action error during the list entry selection.
This list is located within an accordion tab.
Hi Marcel, can you find out what kind of component this is in a technical sense? Perhaps by also talking to Kristian about it? Thanks! Alex
*** Bug 469945 has been marked as a duplicate of this bug. ***
Maissmaallsmyss could you provide a screen-shot of the actual component in the AUT and/or an exported Testresult and the javafx log.
You can send it directly to Marcel if it's confidential.
Created attachment 254364 [details] logs and test results I´ve send the screenshot with component directly to Marcel. Here are logs and test results. Since the drag action with index "1" is considered successful (while the log still contain the exception message), it brings me nothing, because only nested items are draggable.
Thanks, that helped to understand the problem. 1. The select cap is not a selection by indexpath but a selection of multiple indices separated by ",". 2. Indexpath is also not supported for drag and drop in list, however you should be able to access all items in the list by their index or value. In the screenshot you've send me I could the that the list has categories, but this should not affect the navigation via index or value. Have you already tried to use "normal" Index of an Item? For example the element Doko Pritsche in your list should have the index 5. 3. You are trying to drag something into a tree, please make sure that the item on which you want to do the drop action is already visible, because we currently don't support drag & drop for non visible tree items. see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439115
Created attachment 254369 [details] Test reults - OK Hi, thanks a lot! You are right, there are actually no nested items, just some tree entries are not accessible and the indexation is other, then I expected. Doko Pritsche with index 5 was right. Now drag and drop for this list executes successfully.
So I am closing the Bug as invalid due to comment 9, comment 10
Awesome! Thanks Marcel and Maissmaallsmyss for getting this resolved so quickly :)