That's not how it's working on my end.
I have this script:
def runAction(self, event):
from pprint import pformat
system.perspective.print("click " + pformat(event))
And the default table, filtered like this:
As I click between rows this is what I get:
10:09:00.523 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 0L, u'rowIndex': 0L, u'value': {u'city': 'Folsom', u'country': 'United States', u'population': 77271L}}
10:09:03.799 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 1L, u'rowIndex': 1L, u'value': {u'city': 'Helsinki', u'country': 'Finland', u'population': 635591L}}
10:09:05.639 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 6L, u'rowIndex': 2L, u'value': {u'city': 'San Francisco', u'country': 'United States', u'population': 884363L}}
10:09:05.789 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 6L, u'rowIndex': 2L, u'value': {u'city': 'San Francisco', u'country': 'United States', u'population': 884363L}}
10:09:05.790 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - dbl {u'row': 6L, u'rowIndex': 2L, u'value': {u'city': 'San Francisco', u'country': 'United States', u'population': 884363L}}
10:09:18.943 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 33L, u'rowIndex': 3L, u'value': {u'city': 'Kabul', u'country': 'Afghanistan', u'population': 3414100L}}
10:09:25.890 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 42L, u'rowIndex': 4L, u'value': {u'city': 'Paris', u'country': 'France', u'population': 2229621L}}
10:09:31.254 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 42L, u'rowIndex': 4L, u'value': {u'city': 'Paris', u'country': 'France', u'population': 2229621L}}
10:09:31.401 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - dbl {u'row': 42L, u'rowIndex': 4L, u'value': {u'city': 'Paris', u'country': 'France', u'population': 2229621L}}
10:09:31.401 [Browser Thread: 1a28b64e-6d05-4713-9dcf-48ba145154f9] INFO Perspective.Designer.Workspace - click {u'row': 42L, u'rowIndex': 4L, u'value': {u'city': 'Paris', u'country': 'France', u'population': 2229621L}}
Where rowIndex
is 'within the visible rows', and row
is 'within the table's overall data', which is what the documentation (and the autocomplete) suggests:
This is on 8.1.34, basically; are you on an older version? It's possible we fixed a bug here.