# Accessing expanded row data with subview

**URL:** <https://forum.inductiveautomation.com/t/accessing-expanded-row-data-with-subview/26871>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [July 25, 2019, 12:40pm UTC](https://forum.inductiveautomation.com/t/accessing-expanded-row-data-with-subview/26871 "2019-07-25T12:40:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [July 25, 2019, 12:40pm UTC](https://forum.inductiveautomation.com/t/accessing-expanded-row-data-with-subview/26871/1 "2019-07-25T12:40:18Z")

</div>

When creating a subview in a Perspective table, how do you pass data about the expanded row as a parameter to the subview? I can only see the data about the selected row, but not about the expanded one, unless I’m missing something.

---

<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:** [July 25, 2019, 2:34pm UTC](https://forum.inductiveautomation.com/t/accessing-expanded-row-data-with-subview/26871/2 "2019-07-25T14:34:44Z")

</div>

The Table will pass the following paraneter structure to the subview:

```auto
{
   column: string | number;
   columnIndex: number;
   row: number; // This is the true row index, as it derived from the data source
   value: any;
}

```

where value is a dictionary whose keys are the column names of the Table.  
A Table with values

```auto
| id | name | desc |
| 0 | Sam | tall |

```

would have a structure of

```auto
{
   column: string | number;
   columnIndex: number;
   row: number; // This is the true row index, as it derived from the data source
   value: {
      'id': 0,
      'name': 'Sam',
      'desc': 'Tall'
   };
}

```

So your “SubView” should have `params` structured in the same manner - unless you have no need for any of the values, at which point you can omit the key.
