# Populating pull down lists from a script

**URL:** <https://forum.inductiveautomation.com/t/populating-pull-down-lists-from-a-script/5822>\
**Category:** Ignition\
**Created:** [February 7, 2013, 2:26pm UTC](https://forum.inductiveautomation.com/t/populating-pull-down-lists-from-a-script/5822 "2013-02-07T14:26:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mluedecke](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mluedecke](https://forum.inductiveautomation.com/u/mluedecke)\
**Post date:** [February 7, 2013, 2:26pm UTC](https://forum.inductiveautomation.com/t/populating-pull-down-lists-from-a-script/5822/1 "2013-02-07T14:26:04Z")

</div>

Is there a command that will populate the items in a pull down list from a script? I want to initialize the pull down list as empty, then populate it within a script.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [February 7, 2013, 4:24pm UTC](https://forum.inductiveautomation.com/t/populating-pull-down-lists-from-a-script/5822/2 "2013-02-07T16:24:21Z")

</div>

All these kinds of components with fields that take tabular data just need a dataset assigned to them.

You can create datasets easily with the system.dataset.toDataSet function.

Here’s the documentation for it: [inductiveautomation.com/support/ … ataset.htm](http://inductiveautomation.com/support/usermanuals/ignition/index.html?system_dataset_todataset.htm)
