# Control list

**URL:** <https://forum.inductiveautomation.com/t/control-list/3916>\
**Category:** Ignition\
**Created:** [January 26, 2012, 2:04am UTC](https://forum.inductiveautomation.com/t/control-list/3916 "2012-01-26T02:04:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [January 26, 2012, 2:04am UTC](https://forum.inductiveautomation.com/t/control-list/3916/1 "2012-01-26T02:04:47Z")

</div>

We are wanting to use the List component so that we can select multiple values. How can we populate the List (we have that part down) and obtain the list of numbers that was selected in the List, using the getSelectedValues() scripting function?  
Thanks.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 26, 2012, 10:56am UTC](https://forum.inductiveautomation.com/t/control-list/3916/2 "2012-01-26T10:56:11Z")

</div>

Travis had a pretty [neat solution](http://inductiveautomation.com/forum/viewtopic.php?f=70&t=7545) for doing same thing on a table.

In your instance of a list, it would work a bit differently. The dynamic property you create would be bound to an expression like:

```auto
runScript("system.gui.getWindow('WindowName).getComponentForPath('Root Container.List').getSelectedValues()", 250)
```
