# (Vision) Subview row table

**URL:** <https://forum.inductiveautomation.com/t/vision-subview-row-table/30462>\
**Category:** Ignition\
**Tags:** ignition80, vision\
**Created:** [December 5, 2019, 9:50am UTC](https://forum.inductiveautomation.com/t/vision-subview-row-table/30462 "2019-12-05T09:50:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![giulio.comito](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/giulio.comito/32/12671_2.png) [@giulio.comito](https://forum.inductiveautomation.com/u/giulio.comito)\
**Post date:** [December 5, 2019, 9:50am UTC](https://forum.inductiveautomation.com/t/vision-subview-row-table/30462/1 "2019-12-05T09:50:45Z")

</div>

Hello everyone! I have been using Ignition for a short time and I wonder if it is possible to create a table that has the “Subview row” property (like the table on Perspective).  
I would like to get a table where clicking on a row opens a sub-line that displays information related to the clicked row.  
Thank you all!

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [December 5, 2019, 2:11pm UTC](https://forum.inductiveautomation.com/t/vision-subview-row-table/30462/2 "2019-12-05T14:11:14Z")

</div>

I’m using a second table to do something like this. The first table has the primary information about a batch. When they select a row it fill in another table below it with more detailed information. I’ve done this 2 different ways.

On one I used a custom property on the main table that did a lookup on the ID for the selected row. The second table used that ID to run a query to pull up the expanded data I wanted to display.

The second way is I had the first table hold all of the information but hid the rows I didn’t want in the main table. Then I used a property change script to create a dataset, when the selected row changed, then write it to the second table.

---

<div class="post-metadata">

**Author:** ![giulio.comito](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/giulio.comito/32/12671_2.png) [@giulio.comito](https://forum.inductiveautomation.com/u/giulio.comito)\
**Post date:** [December 9, 2019, 1:36pm UTC](https://forum.inductiveautomation.com/t/vision-subview-row-table/30462/3 "2019-12-09T13:36:47Z")

</div>

It might be a good solution, but I’m not sur if the resulting effect (animation) is like the one in Perspective (example: click on the first row opens a sub-view between the first and the second row).

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 9, 2019, 2:10pm UTC](https://forum.inductiveautomation.com/t/vision-subview-row-table/30462/4 "2019-12-09T14:10:57Z")

</div>

Unfortunately, this isn’t supported within jtables (the swing component used in vision).

@bpreston has the best option in using a second table. You could get fancy in animating the second table to fly out from the first, but the second table is your best bet. 🙂

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 9, 2019, 2:13pm UTC](https://forum.inductiveautomation.com/t/vision-subview-row-table/30462/5 "2019-12-09T14:13:12Z")

</div>

Rats, hit submit too soon.

This really is a neat idea, though, so I’d also recommend submitting it on the ideas forum:

> **[Inductive Automation Feedback](https://ideas.inductiveautomation.com/)**
>
> Give feedback to the Inductive Automation team so we can make more informed product decisions. Powered by Canny.

---

<div class="post-metadata">

**Author:** ![giulio.comito](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/giulio.comito/32/12671_2.png) [@giulio.comito](https://forum.inductiveautomation.com/u/giulio.comito)\
**Post date:** [December 12, 2019, 4:03pm UTC](https://forum.inductiveautomation.com/t/vision-subview-row-table/30462/6 "2019-12-12T16:03:03Z")

</div>

I thought I could simulate a table with a template repeater and then implement the animation of the lines that move when you click … but it’s really hard!
