I am trying to create a UI for nested data using Data-Shapes. Please see below graph. The data shapes package UI looks good but when I check the user input data, I see some not selected values as well.
Could someone please help me?
You’ll have to explain what your data structure looks like, what your inputs were in the UI, and what you were expecting. Right now we have no clue what it is you actually did or want.
My Data structure is very simple, it is just in text format.
Title 1 - Two options
Title 2 - Two options
I am also attaching the UI image that data-shape pops-up. which is what I am looking for!
But when I select those values. the “User Inputs” has extra values which i did not pick.
You need to provide an input for test2. If you include the Select all / Select none option, then you must pick one of them if no individual options are selected.
If that still doesn’t fix the issue then try providing each ListView Input separately to make sure they are working as intended.
Thank you for helping me out on this. But somehow I am not able to re-create that. I did select “select none” for test2. but I still got wrong value.
were you able to do this?
My intention was to create a “flexible” ListView form so that depending on upstream data, form would change. I would prefer not to hard code ListView input separately.
if you want your values to be seperate choises you need to list them as seperate chocies.
if you want test one input to select apple & banan and test 2 input for Pear & pinapple
you need to do as picture below
Sorry, it’s been a while since I’ve used Data-Shapes and I totally forgot that this change occurred.
The python code that makes up the input nodes from Data-Shapes no longer supports multiple inputs for the same node. You would have to use two Listview Data nodes for your two input lists or pull out the python code from the node and modify it to handle multiple input lists.
If you know how many inputs lists you’ll have (but need to keep the selections or length flexible), then multiple nodes is a no-brainer. If you need full flexibility in the number of potential selections, then you’ll need to deal with the python code or find an alternative solution.
I don’t think it is the ListView node that needs any modification, it is the MultipleInputForm++ Python code that shows value currently but selection is not output correctly as shown. somewhere here.
That’s true, but as I said, it works with two separate ListView nodes. That would seem to point to the MultipleInputForm working fine with multiple inputs (which makes sense since that’s literally the point of the node).
Are you sure? It’s still returning only values from the first list for me. It seems highly unlikely that an issue with maintaining multiple inputs would be fixed by flattening the list structure.
If it’s working for you that’s all that matters. I would recommend you don’t modify the original node (make a copy) or, better yet, make it work with just the python node.