Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hi. Can anyone explain me how SelectedItems in list widget works?
I have a list with severals items in it, so i need to select some default values and i can't figure out how to set the selected items; I know the widget has a "SelectedItems" option, but it doesn't work.
Thank You in Advance.
Selecteditems should have an infotable input.
Hi, Gautham. Thanks for the answer.. I know it needs an infotable.. Actually I pass an infotable as a parameter but it doesn't select the items.
If your infotable returns more than one row, try checking the MultiSelect option .
Hi Janet. Thanks for the reply. It already has the MultiSelect option checked.
Eddison,
From what I understand, you have a service that returns an infotable . And you want to auto select those rows in the List widget.
You could achieve that by just binding All Data from your service (QueryJustTwo in my example)to the SelectedItems of the List Widget.
Janet. As soon as i test your solution. I'll reply. Thans.
Hi, Janet.. Sry for the late response (few months i guess) but i didn't keep working on that until now.. I realize that the selectedItems works perfectly, but in my case the list with the options and the list with the selected options are sent to a navigation widget in a modal popup and when it loads, does nothing.. Do you have any idea the cause of this? Thanks.