# Display Barcodes in Perspective Table

**URL:** <https://forum.inductiveautomation.com/t/display-barcodes-in-perspective-table/105708>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [April 29, 2025, 9:09pm UTC](https://forum.inductiveautomation.com/t/display-barcodes-in-perspective-table/105708 "2025-04-29T21:09:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [April 29, 2025, 9:09pm UTC](https://forum.inductiveautomation.com/t/display-barcodes-in-perspective-table/105708/1 "2025-04-29T21:09:45Z")

</div>

This one is a bit tricky but I want to display a Barcode under the Part Number that has the value of the Part Number.

I don't know if this is possible but can I do this some how? I know it's possible with reports but I haven't seen any way to do this with tables.

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

---

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [April 29, 2025, 9:11pm UTC](https://forum.inductiveautomation.com/t/display-barcodes-in-perspective-table/105708/2 "2025-04-29T21:11:12Z")

</div>

I see there is barcode components but I'd like the barcodes as an element of the tables if 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:** [April 29, 2025, 9:16pm UTC](https://forum.inductiveautomation.com/t/display-barcodes-in-perspective-table/105708/3 "2025-04-29T21:16:30Z")

</div>

That is what cell render views are for. Make a small view that can receive your barcode string in `view.params.value` and place the barcode component in that view, bound to that parameter. Then set the table column to render mode == view and provide that view path.

---

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [May 1, 2025, 4:29pm UTC](https://forum.inductiveautomation.com/t/display-barcodes-in-perspective-table/105708/4 "2025-05-01T16:29:21Z")

</div>

This worked!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/0/009cebb8f5e0bbf883466e4905fae98163af8012.png)  
So I have my barcode here and the table loads in data from a Query, the Part Number columns header from the database is actually `material` but I can't seem to figure out how to load in the `material` value for each column into the barcode

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/03d5ff619f8e436a35e07f957f589dbf3286b102.png)  
I'm assuming it has something to do with the `viewParams` but I don't know what to bind it to so that I can get the unique `material` id for each row

---

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [May 1, 2025, 5:01pm UTC](https://forum.inductiveautomation.com/t/display-barcodes-in-perspective-table/105708/5 "2025-05-01T17:01:18Z")

</div>

Never mind I figured it out!

> [@Documentation on what is passed to table cell rendered as view](https://forum.inductiveautomation.com/t/documentation-on-what-is-passed-to-table-cell-rendered-as-view/53951):
>
> As many of you know, a Perspective table can render cells in a certain column as a view. For instance, the documentation [here](https://docs.inductiveautomation.com/display/DOC81/Table+Column+Configurations) talks about passing in parameters from the table’s column property and then using those variables inside the embedded view. What I’m looking for is some documentation on what gets passed into a cell rendered as a view by default. For example, I know that rowData, rowIndex, columnIndex, and value are all accessible from the embedded view (if they’re added as params). Are …

This post solved it for me with these params being passed

```python
rowData
rowIndex
columnIndex
row
column
value

```
