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()
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()
You can put it in the data property of your dropdown. Here is an example:
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.