# Perspective view params in embedded table row

**URL:** <https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 4, 2021, 5:35pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559 "2021-08-04T17:35:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![csanchez](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@csanchez](https://forum.inductiveautomation.com/u/csanchez)\
**Post date:** [August 4, 2021, 5:35pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559/1 "2021-08-04T17:35:10Z")

</div>

Hello,  
im using a embedded view in a table to display an alarmar in a row, each row has a diferente value that chanche a text field and a background image depending on a view’s value params.

theese are the view pictures and how it change depending param “criticidad” values  
 ![imagen](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/92993a1514abc70d1979bf4fed2604423af6f7bf.png)

![imagen](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d640dc267c8fb1147ebd3580481ccfd38c4e8da.png)

![imagen](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/3/f3803a79929a3ac90055c9b7db8eb0366b5b0b8e.png)

when i configure the table colum property it display like this

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1c31823a88b0bcdb85e84e79d0d31b3fdf254d85.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/7/87d89bdee1ab859a749b037d7ab7b31547fcb5cc.png)

every row that i add displays the same view, at the moment im just trying to set one but there will be at least 20, with differents setups each and i’m strugled on how and where to asign differents params to each view per row. I found in the forum similars topics, but i couldn’t figure out how to set it up properly.  
in the data property i tried the follows, non successful…  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/a/7ad964b4993c66aac78cb40e36f8b69eae6d15c7.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/e/fe112f4f480e6c35c07e7e6c098fc120dac30fb3.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/4/c4dfd896d43de5bee11cc197e96847fdd7513c1b.png)

what am i doing wrong??  
Thanks!

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [August 4, 2021, 7:41pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559/2 "2021-08-04T19:41:03Z")

</div>

> [@csanchez](#):
>
> every row that i add displays the same view, at the moment im just trying to set one but there will be at least 20

The Table only supports one View type per column, so I hope you mean twenty columns per row.

You don't need to modify the viewParams property of the column config unless you want to hard-code values across ALL rows.

When a column renders a View, the View will receive the value of the column within a param named `value`.

I have constructed a View named "Popup" (I'm sorry, but I was already looking into something else) which has one param named `value`. I am rendering the "population" column of the default data for the table as a View and I have specified the path to my View. I have not set any View params within the column configuration.

**Current data structure:**

 ![Screen Shot 2021-08-04 at 12.31.01 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/924c235733f24365cdd1fa174c71eb6754ff5531.png)

**Column configuration (note no `viewParam` settings):**

![Screen Shot 2021-08-04 at 12.31.22 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4f15af2d9433feef55e8b169f537a3fdcb8069e4.png)

**Instanced View param settings (note the param name is `value`):**

![Screen Shot 2021-08-04 at 12.34.36 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/ad58f682da14b4f70ff054239d72ba239ca695b6.png)

So what YOU should do is either...  
A. Place `criticidad` at the same level as `estado` and `valor`, and change your param name to `value`...

OR

B. Leave `criticidad` as a child of `alarma`, and then change the column config to use `alarma` as the column, and your instanced View will need to expect a param structure of `value.criticidad`.

I recommend A.

---

<div class="post-metadata">

**Author:** ![csanchez](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@csanchez](https://forum.inductiveautomation.com/u/csanchez)\
**Post date:** [August 9, 2021, 4:25pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559/3 "2021-08-09T16:25:00Z")

</div>

Thanks a lot, option A worked great for me.

---

<div class="post-metadata">

**Author:** ![OscarJ](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@OscarJ](https://forum.inductiveautomation.com/u/OscarJ)\
**Post date:** [January 4, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559/4 "2022-01-04T15:55:04Z")

</div>

will there be a way to put the values ​​of 2 columns in a single view?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 4, 2022, 5:30pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559/5 "2022-01-04T17:30:13Z")

</div>

Only if you’re using a subview, which receives all of the data of the row. If you’re rendering a view in a column, then that view will only receive the data of the column for that row.

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [January 4, 2022, 10:08pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559/6 "2022-01-04T22:08:42Z")

</div>

If you add an empty object param named rowData to your view, the entire table row’s data gets passed into it. You would just need to know the key for the second column’s value you wanted.

I routinely use this to get some sort of unique identifier for the row I’m working with (e.g. id or name) so that I can call a message handler to update the data for the same row in the table from the embedded view.

---

<div class="post-metadata">

**Author:** ![OscarJ](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@OscarJ](https://forum.inductiveautomation.com/u/OscarJ)\
**Post date:** [January 4, 2022, 10:21pm UTC](https://forum.inductiveautomation.com/t/perspective-view-params-in-embedded-table-row/49559/7 "2022-01-04T22:21:26Z")

</div>

Thanks, that works for me 🙂
