# Display Report Names in Dropdown List

**URL:** <https://forum.inductiveautomation.com/t/display-report-names-in-dropdown-list/14194>\
**Category:** Ignition\
**Created:** [May 2, 2017, 11:15pm UTC](https://forum.inductiveautomation.com/t/display-report-names-in-dropdown-list/14194 "2017-05-02T23:15:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hazmat480](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@Hazmat480](https://forum.inductiveautomation.com/u/Hazmat480)\
**Post date:** [May 2, 2017, 11:15pm UTC](https://forum.inductiveautomation.com/t/display-report-names-in-dropdown-list/14194/1 "2017-05-02T23:15:26Z")

</div>

I found the script for displaying the report names as a dataset. However I am not sure where I put this in order to have it be displayed in my dropdown list. Thank you for your help.

I am using Ignition 7.8.

system.report.getReportNamesAsDataset()

---

<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:** [May 3, 2017, 4:07am UTC](https://forum.inductiveautomation.com/t/display-report-names-in-dropdown-list/14194/2 "2017-05-03T04:07:16Z")

</div>

> [@Hazmat480](#):
>
> system.report.getReportNamesAsDataset()

You can put it in the data property of your dropdown. Here is an example:

```auto
root = event.source.rootContainer
dropdown = root.getComponent('Dropdown')
reports = system.report.getReportNamesAsDataset()
dropdown.data = reports

```

You can put that script in the visionWindowOpened event on the window that has the dropdown. That way when the window is opened the dropdown will be populated with the names of the reports.
