# Perspective table component selection prop has some strange behavior

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197>\
**Category:** Ignition\
**Created:** [May 27, 2021, 3:48pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197 "2021-05-27T15:48:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [May 27, 2021, 3:48pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/1 "2021-05-27T15:48:27Z")

</div>

When you select multiple rows in a table, Perspective will populate props.selection.data with the data from the rows you selected. If you then click on a single row, it will populate props.selection.data with the data for that single row. If you didn’t have multiple rows selected before hand, clicking on a single row will not update the data prop. Further, I found that this affects when the data property is assigned as a dataset, but not as a list.

This is a bug, yes?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 27, 2021, 5:06pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/3 "2021-05-27T17:06:17Z")

</div>

What version are you using?

---

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [May 27, 2021, 6:07pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/4 "2021-05-27T18:07:45Z")

</div>

I’m using version 8.1.3.

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

---

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [May 27, 2021, 7:15pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/5 "2021-05-27T19:15:02Z")

</div>

I tried with version 8.1.6 and observed the same behavior.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 27, 2021, 8:34pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/6 "2021-05-27T20:34:51Z")

</div>

We are unable to replicate this in 8.1.6. Could you provide the view.json file in which you are encountering this and provide precise steps for what you are seeing? if you’re using dynamic data, please provide a static data source so that we can replicate exactly what you’re seeing. If you can’t provide us these here on the forum, then you’ll need to contact support for further assistance.

---

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [May 27, 2021, 9:37pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/7 "2021-05-27T21:37:08Z")

</div>

I tracked the issue a bit, the unexpected behavior is triggered by having a ‘#’ as a column header in the dataset. Is there some undocumented limitations in what characters are allowed to be used in the header?

I haven’t seen any other unexpected behavior except for what I described here, it seems to work normally for data manipulation and display.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 27, 2021, 9:50pm UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/8 "2021-05-27T21:50:37Z")

</div>

I wouldn’t expect `#` to be a problem.

---

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [May 28, 2021, 11:56am UTC](https://forum.inductiveautomation.com/t/perspective-table-component-selection-prop-has-some-strange-behavior/47197/9 "2021-05-28T11:56:21Z")

</div>

Maybe it’s actually more complicated than that. I noticed that when I removed that column it fixed the behavior and removed the error message, but I added it back in and the behavior didn’t return (the error message did).

If you paste the attached dataset into a newly created table that had it’s data property set to a dataset via the code below you should be able to see the same behavior (I hope).

```auto
    headers = ["A", "B", "C"]
	data = []
	data.append(["A1", "B1", "C1"])
	data.append(["A2", "B2", "C2"])
	data.append(["A3", "B3", "C3"])
	
	self.getSibling("Table").props.data = system.dataset.toDataSet(headers, data)
	
	

```

[Data.txt](https://forum.inductiveautomation.com/uploads/short-url/uJJr9dTkcWo67OErW0WM23nJOSM.txt) (105.8 KB)
