# Elements inside a Lua table into menu

**URL:** <https://forums.solar2d.com/t/elements-inside-a-lua-table-into-menu/351894>\
**Category:** Newbie Questions\
**Created:** [July 23, 2020, 5:12am UTC](https://forums.solar2d.com/t/elements-inside-a-lua-table-into-menu/351894 "2020-07-23T05:12:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadanq](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@shadanq](https://forums.solar2d.com/u/shadanq)\
**Post date:** [July 23, 2020, 5:12am UTC](https://forums.solar2d.com/t/elements-inside-a-lua-table-into-menu/351894/1 "2020-07-23T05:12:20Z")

</div>

I have saved a bunch of values inside a lua table - which are files loaded from the server, and I would like to put each value into some kind of a menu, where the user can select one of the values in the table to download a particular file from the server. How would I be able to implement this?? Would widget.newtableview() or Spinner work in this case? Or are spinners in Corona/Solar2d different than android studio. Any help would be appreciated! Thank you!

---

<div class="post-metadata">

**Author:** ![Andrey5045](https://forums.solar2d.com/user_avatar/forums.solar2d.com/andrey5045/32/146_2.png) [@Andrey5045](https://forums.solar2d.com/u/Andrey5045)\
**Post date:** [July 24, 2020, 10:40am UTC](https://forums.solar2d.com/t/elements-inside-a-lua-table-into-menu/351894/2 "2020-07-24T10:40:09Z")

</div>

There are lots of ways of interactions with the user. You can create lots of buttons which trigger download process of each file, it can be a scrollview with text-lines which work as buttons… You can create them using a cycle which uses your table. All the buttons would call just one function which would read a unique .id of a button and then download a file according to the id.

I personally avoid using a Spinner because it does not return a value until touched, even though the value is visually selected.
