# How do I maintain selection in Vision List components

**URL:** <https://forum.inductiveautomation.com/t/how-do-i-maintain-selection-in-vision-list-components/84226>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [January 12, 2024, 7:58pm UTC](https://forum.inductiveautomation.com/t/how-do-i-maintain-selection-in-vision-list-components/84226 "2024-01-12T19:58:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Mong](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@Dave\_Mong](https://forum.inductiveautomation.com/u/Dave_Mong)\
**Post date:** [January 12, 2024, 7:58pm UTC](https://forum.inductiveautomation.com/t/how-do-i-maintain-selection-in-vision-list-components/84226/1 "2024-01-12T19:58:38Z")

</div>

New to Ignition so this is probably simple. I have a Vision window with 6 List components on it with each list having 3 options/choices. When I leave this window and come back to it, all 6 of the lists have the uppermost item selected rather than where they were left. I want whatever was selected to stay selected on screen changes or when closing and reopening the project. Should I be using a different type of component?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 12, 2024, 8:51pm UTC](https://forum.inductiveautomation.com/t/how-do-i-maintain-selection-in-vision-list-components/84226/2 "2024-01-12T20:51:09Z")

</div>

> [@Dave\_Mong](#):
>
> on screen changes or when closing and reopening the project

These are two different requirements.

To retain state across window open/close, you would create Vision Client tags to hold the selections, and bidirectionally bind the lists to the client tags.

To retain state across project open/close, you would need gateway tags instead of client tags. But note that this means all clients will always have the same selections--gateway tags are system-global.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [January 13, 2024, 5:25am UTC](https://forum.inductiveautomation.com/t/how-do-i-maintain-selection-in-vision-list-components/84226/3 "2024-01-13T05:25:26Z")

</div>

> [@Dave\_Mong](#):
>
> I want whatever was selected to stay selected on screen changes or when closing and reopening the project.

If the selections need to be client specific and need to persist through a project shutdown and restart, store the information in a database table on close or deactivation, so the information can be retrieved and set when the window is reopened.
