# viewParams in an embedded view inside of a tableRow

**URL:** <https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 18, 2024, 3:04pm UTC](https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029 "2024-06-18T15:04:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Breeding](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matthew\_Breeding](https://forum.inductiveautomation.com/u/Matthew_Breeding)\
**Post date:** [June 18, 2024, 3:04pm UTC](https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029/1 "2024-06-18T15:04:05Z")

</div>

So I know in the column of a table you can make it render a component in each row of that column and apply params that apply to every row, I was wondering if there is a way to assign params for EACH row

What I'm trying to accomplish is assigning a different color for each of the instances in this table  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/6/c6613e9ecba3110710be4e540ecbaa18487d2f8b.png)

So i was just wondering if anything like this is possible?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 18, 2024, 3:06pm UTC](https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029/2 "2024-06-18T15:06:46Z")

</div>

When you use render mode = "view" in a table column, each cell's view is passed implicit parameters you can use:

- `value` for that cell's raw value in the table, and

- `rowData` for the entire row's raw data. Your cell view can use that information however it likes.

---

<div class="post-metadata">

**Author:** ![Matthew\_Breeding](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matthew\_Breeding](https://forum.inductiveautomation.com/u/Matthew_Breeding)\
**Post date:** [June 18, 2024, 3:08pm UTC](https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029/3 "2024-06-18T15:08:27Z")

</div>

so if my color component has a 'color' param, inside of the rowdata I would have a color property and pass it there?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 18, 2024, 3:13pm UTC](https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029/4 "2024-06-18T15:13:01Z")

</div>

> [@Matthew\_Breeding](#):
>
> color component has a 'color' param

No, you must make your render view take the predefined parameter names.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 18, 2024, 3:49pm UTC](https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029/5 "2024-06-18T15:49:00Z")

</div>

Are you sure you shouldn't just be using [row styling](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table/styling-rows)? No need for parameters or views.

Also consider applying the styling as a wide cell left-border and displaying the value as clear text. It's much easier to read and may help the 1 in 12 colour-blind men and 1 in 200 colour-blind women among us.

Have a skim through [Filtering a table with Named Querie with 3 checkboxes in Ignition Perspective](https://forum.inductiveautomation.com/t/filtering-a-table-with-named-querie-with-3-checkboxes-in-ignition-perspective/89345) to get an idea of what I'm suggesting.

---

<div class="post-metadata">

**Author:** ![Matthew\_Breeding](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matthew\_Breeding](https://forum.inductiveautomation.com/u/Matthew_Breeding)\
**Post date:** [June 18, 2024, 5:42pm UTC](https://forum.inductiveautomation.com/t/viewparams-in-an-embedded-view-inside-of-a-tablerow/92029/6 "2024-06-18T17:42:35Z")

</div>

> [@Transistor](#):
>
> Also consider applying the styling as a wide

I have figured it out, let me lay it out I have a column called 'Display-Color-Hexcode' with the render set to 'view' with a component of 'color'

for context once you click this color it will render a color picker in that row. I needed to pass a parameter to each instance in each row so the user has a starting color that is 'prefered' in my program  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fa11c5c0f64a6a82ab0d41d2bf5d3ea5c10f1b57.png)

I acheived this by passing the parameter to the data property on the table  
like so  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/e/ae2b14e65be0cc1efee69d424d0b0a2bde211cd0.png)  
this sets the color off rip and they can edit them if they want too but do not have too.
