# Perspective props is returning the datatype as well as the data

**URL:** <https://forum.inductiveautomation.com/t/perspective-props-is-returning-the-datatype-as-well-as-the-data/43095>\
**Category:** Ignition\
**Created:** [February 6, 2021, 11:37pm UTC](https://forum.inductiveautomation.com/t/perspective-props-is-returning-the-datatype-as-well-as-the-data/43095 "2021-02-06T23:37:33Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [February 6, 2021, 11:37pm UTC](https://forum.inductiveautomation.com/t/perspective-props-is-returning-the-datatype-as-well-as-the-data/43095/1 "2021-02-06T23:37:33Z")

</div>

Ignition 8.1.1.

- I’ve got a table and a row _Delete_ button.
- I need to get the “id” value of the selected row on the table.
- The _Delete_ button _onActionPerformed_ runs a script which contains the line

```auto
    params = {'id':self.parent.parent.getChild("Table").props.selection.data[0].id}
    system.perspective.print(params)

```

The console reports the row with

```auto
23: ... Perspective.Designer.Workspace - {'id': 1L}
23: ... Perspective.Designer.Workspace - {'id': 3L}

```

… the ‘L’ being added, I guess, to signify _Long_ datatype.

If I change it to look at a cell that contains ‘ABC2’ I get

```auto
23: ... Perspective.Designer.Workspace - {'machine': u'ABC2'}

```

which looks like ‘u’ signifies Unicode.

How do I get just the data without the type information?

While we’re here, I can’t find a good tutorial on coding an Add and a Delete button for the table. It’s hard work! Is there a guide anywhere?

Many thanks.

---

<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:** [February 6, 2021, 11:43pm UTC](https://forum.inductiveautomation.com/t/perspective-props-is-returning-the-datatype-as-well-as-the-data/43095/2 "2021-02-06T23:43:59Z")

</div>

Hmmm. If I use

```auto
system.perspective.print(params['id'])

```

I get

```auto
23: ... Perspective.Designer.Workspace - 2

```

which is what I want.
