# Tables

**URL:** <https://forum.inductiveautomation.com/t/tables/9821>\
**Category:** General Discussion\
**Created:** [March 20, 2015, 12:33am UTC](https://forum.inductiveautomation.com/t/tables/9821 "2015-03-20T00:33:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacslade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacslade/32/3587_2.png) [@zacslade](https://forum.inductiveautomation.com/u/zacslade)\
**Post date:** [March 20, 2015, 12:33am UTC](https://forum.inductiveautomation.com/t/tables/9821/1 "2015-03-20T00:33:05Z")

</div>

Hi all,

So I’ve got a table, and I want to use the first column for navigation. (It’s a weird application - but I want to do it anyway).

This is the code snippet I’m using:

```auto
row = event.source.selectedRow;
column = event.source.selectedColumn;
dataset = event.source.data;

target = dataset[row, 0];

if column == 0:
	system.nav.swapTo('Estimates/Service Item', {'ItemName' : target});
```

And this is the error:

```auto
Traceback (most recent call last):

  File "<event:mouseClicked>", line 5, in <module>

TypeError: 'com.inductiveautomation.ignition.common.BasicDataset' object is unsubscriptable
```

I assume I’m indexing the BasicDataset wrong. Anybody know exactly what I’m doing wrong here?

Thanks in advance,  
Zac

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [March 20, 2015, 9:45am UTC](https://forum.inductiveautomation.com/t/tables/9821/2 "2015-03-20T09:45:05Z")

</div>

Index the Dataset like this:

```auto
target = dataset.getValueAt(row,0)
```

Checkout the Dataset examples on this webpage: [support.inductiveautomation.com … atatyp.htm](https://support.inductiveautomation.com/usermanuals/ignition/index.html?working_with_different_datatyp.htm)  
Best,
