keep data in listview

Hello Community !

How can I populate a listview (or a wrapbox with add child node) with datas,
Then keep those datas and add new ones to existing ?

I only succed to get the last data selected, but not to keep and add new data.

Thanks in advance

List view is just that, a view. You can’t keep data in it.

The data needs to be kept elsewhere, an array being a good example :slight_smile:

That is what i thought…
I tried to use array but I’m stuck…

Insert node have no output. How can I manage this ?

Don’t use insert, use ADD, it just adds the entry to the array.

You don’t need an output, just use the array reference:

I just tried with add node :

Print string return everytime “0”, like if array remains empty.
I miss Something important, but what ?

This is doing nothing, you can remove it:

301527-delete.jpg

And move to print to just after you have added the element:

I move print node, and now, index is good.
But on list view I can still only see 1 element.
If I left Perso array with no default value, I see nomPerso Variable.
If I put default value in PersoArray, I see trhe first default value.

The same thing If I try instead list view, wrapbox with child node.

In the child widget, I bind text with the array send in game mode and return a for each loop to the node. Is this the correct way ?

link text

Linked, the logic I used.

Ok, it’s a ‘whole thing’. It’s probably better if I give you a link to a vid:

Wow ! That’s a complete and technical video ^^
I need to try with my files !
Thanks a lot