# Variable Param session Report

**URL:** <https://forum.inductiveautomation.com/t/variable-param-session-report/57667>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 25, 2022, 8:09pm UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667 "2022-03-25T20:09:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul.M](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Paul.M](https://forum.inductiveautomation.com/u/Paul.M)\
**Post date:** [March 25, 2022, 8:09pm UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/1 "2022-03-25T20:09:09Z")

</div>

Hello,

I try to generate a custom report with Perspective. I was able to create a query and bind to a tag with a param. But my problem now it is the next one:

- this report should be use by a certain number of people from different session and data from report will be variable (depend on user). It is any chance to bind the report to a session variable or someone have any solution to this problem?

(Data from report it’s took from a Query with a custom parameter to give unique data to user, like an IDX)

Thansk,

Paul

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [March 25, 2022, 9:23pm UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/2 "2022-03-25T21:23:12Z")

</div>

Use session props (configured on the “landing page” in Perspective). You will be able to bind that session prop to alter your report. And the session prop is specific to that session, so you won’t have to worry about conflicting writes to it. etc…

---

<div class="post-metadata">

**Author:** ![Paul.M](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Paul.M](https://forum.inductiveautomation.com/u/Paul.M)\
**Post date:** [March 28, 2022, 9:28am UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/3 "2022-03-28T09:28:37Z")

</div>

Hello,

I tried this but when I create a parameter in Reports, I can choose only ‘Tags’, I’m not able to choose something from session. And because of that it’s a high chance to get data conflicts when I try to generate reports from different session with different params.

 ![capture1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/4/d4c251490c5a4ea87084e2375de18a21e8f0bab5.png)

---

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.inductiveautomation.com/u/user66)\
**Post date:** [March 28, 2022, 11:08am UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/4 "2022-03-28T11:08:33Z")

</div>

How are you viewing the report? Is it using “report viewer” component in perspective?  
If yes, you can just create the “New parameter” in params of report viewer and bind it to the session prop that you want.  
Hope this helps 😀

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [March 28, 2022, 4:17pm UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/5 "2022-03-28T16:17:32Z")

</div>

Adding on to what @user66 just mentioned. You can set the parameters of a report in a script as well. So if the report is being generated from Perspective you would be able to access all of the session properties in the script and set the Report parameters.

[https://docs.inductiveautomation.com/display/DOC81/system.report.executeReport](https://docs.inductiveautomation.com/display/DOC81/system.report.executeReport)

---

<div class="post-metadata">

**Author:** ![Paul.M](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Paul.M](https://forum.inductiveautomation.com/u/Paul.M)\
**Post date:** [March 28, 2022, 8:13pm UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/6 "2022-03-28T20:13:39Z")

</div>

@user66 yes, It’s “report viewer” component from Perspective. @kvane I didn’t know I can set a report to generate from script as well, I will make a try. Thanks very much for help guys 😃

---

<div class="post-metadata">

**Author:** ![Paul.M](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Paul.M](https://forum.inductiveautomation.com/u/Paul.M)\
**Post date:** [March 28, 2022, 8:22pm UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/7 "2022-03-28T20:22:24Z")

</div>

To be honest I was able to find any session params on report viewer, just tag ones. I have Ignition 8.1.13 and on Reporting Module 6.1.13 (TRIAL module until I get my license) maybe for that?

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [March 29, 2022, 3:28pm UTC](https://forum.inductiveautomation.com/t/variable-param-session-report/57667/8 "2022-03-29T15:28:45Z")

</div>

On the Report Viewer, I am assuming you are trying to setup a binding on the Report Viewer parameter. The Session Properties would be here in the Property binding editor window:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/4/74591c26f92f8e490e90385afacb4fee570f8b61.png)
