# Perspective Table selected cell data

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-selected-cell-data/24910>\
**Category:** Ignition Early Access\
**Created:** [May 11, 2019, 12:43am UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-cell-data/24910 "2019-05-11T00:43:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [May 11, 2019, 12:43am UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-cell-data/24910/1 "2019-05-11T00:43:41Z")

</div>

I have a button to display a pop up to edit the selected table row. The button text has a binding to the table to display the selected table item which works.

```auto
.../Table Container/Table.props.selection.data[0].Item

```

but when you load the page the button is showing error as no data is selected from the table. I was able to get it working in vision but im still learning perspective.

```auto
try({Root Container.Power Table.data}[{Root Container.Power Table.selectedRow}, "Serial"], "Select a Machine...")

```

I’m guessing i need some kind of if to say if there is no data display "select machine’ but unsure how to do it.

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [June 12, 2019, 11:30pm UTC](https://forum.inductiveautomation.com/t/perspective-table-selected-cell-data/24910/3 "2019-06-12T23:30:26Z")

</div>

This can be accomplished using an Expression binding and the coalesce function. What the function does is show the first item in the list of arguments that is not null. Using the path you have in your post it should work with an expression like this:

```auto
coalesce({.../Table Container/Table.props.selection.data[0].Item},"Select a Machine...")

```
