# Passing parameters from a window to a popup report

**URL:** <https://forum.inductiveautomation.com/t/passing-parameters-from-a-window-to-a-popup-report/75553>\
**Category:** Ignition\
**Tags:** scripting, vision, ignition81\
**Created:** [June 26, 2023, 8:10pm UTC](https://forum.inductiveautomation.com/t/passing-parameters-from-a-window-to-a-popup-report/75553 "2023-06-26T20:10:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [June 26, 2023, 8:10pm UTC](https://forum.inductiveautomation.com/t/passing-parameters-from-a-window-to-a-popup-report/75553/1 "2023-06-26T20:10:14Z")

</div>

Hello Everyone, I'm trying to show in a report a table made with data from a MySql data base. The client must select the start date and the end date from 2 buttons from a window in Vision, click on a button called report. When the button is actioned a popup call a Report Viewer with the data founded between the two dates. (that is the idea)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/2/e206f03600aeb23c91dbca728c567dddbcecf567.png)

Currently I can see in the popup a report with all the data in the table but not between two dates.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2b84b8351ccc8c3df00873412c6ea13d540c1b84.png)

I tryied in several ways to get the parameters from the vision window to the Report with no success because I can't call the parameter in this part.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/667fa670050cc09a0faf1ff77f231ac37fc0c683.png)

I passed the parameters to the vision window to the popup window but I don't know how to called from the report window.

I hope you understand me and help me.

Thank you

---

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [June 26, 2023, 9:47pm UTC](https://forum.inductiveautomation.com/t/passing-parameters-from-a-window-to-a-popup-report/75553/2 "2023-06-26T21:47:15Z")

</div>

Well, after a lot of interesting ways to "how not to do it" I did it just binding this parameters in the Report Viewer

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/7286cd360be2c9786dbd532006cfc3252d54c576.png)

And it works 🙂
