Listview1 - selection does not respond

Not sure if this is what you need:

https://groups.google.com/g/mitappinventortest/c/Kt75jt6svVk/m/CBXPjsBtEQAJ

Thanks… I'm going to study it….

Are you trying to say that the After Picking event isn't fired at all?

Set ListView.SelectionColor out of the AfterPicking block...you can set it before picking.

I have the same behavior if set the SelectionColor inside the AfterPicking block, but it works if I set it out of the block (I don't know if it's a bug or not, but it's a bit strange behavior).

As I mentioned earlier, after changing any properties, the ListView is reset, and therefore the display of the selected item is also reset. You can get around this by reselecting the item programmatically.

1 Like

Thanks Patrik...I hadn't understood you...now I do. It works.

(added to FAQ)

I've already tried about everything with AfterPicking in ListView1... It won't work for me. Is there any other alternative than ListView1 to display the list?

Senior1954

Hello.
Which ListView extension can be used instead of ListView1 ?

Senior1954

Or you could build one using dynamic components:

This extension is not an alternative to ListView. It just adds a few extra methods to the ListView.

1 Like

Here you will find all extensions:

1 Like

If you have a wide table you could try formatting it as YAML

Hello.
I used the pl.listviewplus.aix extension.
I only want to display the output from SELECT tbl MySQL vertically in the ListView.
I can't display it.
Can you advise me?

Senior1954

I don't see what is happening in the Web1.GotText event.

Hello

gListCelaDB is: ["1;aaaaaaaa","2;bbbbbbb","3;cccccccccc","4;dddddd"]

Remove the call to the "createList" procedure from the Initialize event. And add this call in the Web1.GotText event, under label6.Text....

Thanks! Display works!
Now ListViewPlus1.LongPress .....

Senior1954