# Perspective Table Embedded Dropdown – onActionPerformed Script Error

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-embedded-dropdown-onactionperformed-script-error/113450>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 21, 2026, 2:57pm UTC](https://forum.inductiveautomation.com/t/perspective-table-embedded-dropdown-onactionperformed-script-error/113450 "2026-01-21T14:57:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TechEnlive](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TechEnlive](https://forum.inductiveautomation.com/u/TechEnlive)\
**Post date:** [January 21, 2026, 2:57pm UTC](https://forum.inductiveautomation.com/t/perspective-table-embedded-dropdown-onactionperformed-script-error/113450/1 "2026-01-21T14:57:10Z")

</div>

Hi team,  
I’m using an embedded view with a dropdown inside a Perspective table column. When I attach a script to the dropdown’s **onActionPerformed** event, the Gateway logs an error during execution. I’ve verified the dataset tag path and parameters, but the issue persists. Any guidance would be appreciated. This stopped the other buttons’ function also.

```python
def runAction(self, event):
    
    #self.getSibling("Label").props.text= str(self.view.params.column)
    tagPath = "[default]ds_cutlist"
    rowIndex = self.view.params.rowIndex   
    columnName = self.view.params.column   

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/5/c5c94a1915383e0cde2fd41e3fe998d7f075544b.png)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [January 21, 2026, 3:15pm UTC](https://forum.inductiveautomation.com/t/perspective-table-embedded-dropdown-onactionperformed-script-error/113450/2 "2026-01-21T15:15:55Z")

</div>

It looks like you have a data key that begins with a number (1st). Those are not valid and can be problematic.

---

<div class="post-metadata">

**Author:** ![TechEnlive](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TechEnlive](https://forum.inductiveautomation.com/u/TechEnlive)\
**Post date:** [January 21, 2026, 3:22pm UTC](https://forum.inductiveautomation.com/t/perspective-table-embedded-dropdown-onactionperformed-script-error/113450/3 "2026-01-21T15:22:17Z")

</div>

I’ve checked further, and the same issue also occurs when clicking the embedded view button that moves the current row one step up.

```python
def runAction(self, event):
	# Compose message based on action	
    tagPath = "[default]ds_cutlist"
    rowIndex = self.view.params.rowIndex
   
    if rowIndex <= 0:
        return

    # Read dataset
    ds = system.tag.readBlocking([tagPath])[0].value
    pyDS = system.dataset.toPyDataSet(ds)
    rows = [list(row) for row in pyDS]

    if rowIndex >= len(rows):
        return

    rows[rowIndex - 1], rows[rowIndex] = rows[rowIndex], rows[rowIndex - 1]
  
    headers = list(ds.getColumnNames())
    newDs = system.dataset.toDataSet(headers, rows)
   
    system.tag.writeBlocking([tagPath], [newDs])

```
