# Perspective table column width resize issue

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 21, 2023, 2:48pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382 "2023-03-21T14:48:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [March 21, 2023, 2:48pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/1 "2023-03-21T14:48:52Z")

</div>

Hi,  
I am using a table but my dataset is not in array format  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a79c539639df585e08cb35ce6c4a5395be304955.png)

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

when i try to resize a column.. its not working

how to fix the issue

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [March 21, 2023, 2:52pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/2 "2023-03-21T14:52:10Z")

</div>

this is how i passing data to table example script

```auto
a = [1,2,3]
b = ["good","bad","error"]
c = ["yes","no","none"]

headers =["a","b","c"]
data = []
i = 0
for i in range(0,3):
	data.append([a[i],b[i],c[i]])
test = system.dataset.toDataSet(headers,data)
print test

```

or please let me know how to pass this in array format to table dataset

---

<div class="post-metadata">

**Author:** ![JoeF](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JoeF](https://forum.inductiveautomation.com/u/JoeF)\
**Post date:** [March 21, 2023, 3:06pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/3 "2023-03-21T15:06:28Z")

</div>

I believe you can still use column resizing with a dataset, are you using props.columns to declare the names/customization for each column? You can resize using the props.columns.width property:

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

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [March 21, 2023, 3:08pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/4 "2023-03-21T15:08:48Z")

</div>

Yes i tired its not working that's why posted this issue

---

<div class="post-metadata">

**Author:** ![JoeF](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JoeF](https://forum.inductiveautomation.com/u/JoeF)\
**Post date:** [March 21, 2023, 3:09pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/5 "2023-03-21T15:09:23Z")

</div>

Could you share a screenshot of what you have under the props.columns property?

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [March 21, 2023, 3:13pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/6 "2023-03-21T15:13:47Z")

</div>

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

width also i changed

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

not working

---

<div class="post-metadata">

**Author:** ![JoeF](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JoeF](https://forum.inductiveautomation.com/u/JoeF)\
**Post date:** [March 21, 2023, 3:15pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/7 "2023-03-21T15:15:05Z")

</div>

Thank you. **field** is case-sensitive, could try using "TagPath" and "Unit" and "OPCPath"?

---

<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:** [March 21, 2023, 3:16pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/8 "2023-03-21T15:16:01Z")

</div>

Your props show fields of `tagpath` and `unit`, but those columns have different casing in your screenshot. The `field` prop must be a case-sensitive match to one of your Dataset columns in order for that config to work in the table.

Edit: I was looking at a later post and had forgotten about the screenshot present in the first post.

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [March 21, 2023, 3:16pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/9 "2023-03-21T15:16:25Z")

</div>

got it that's the issue  
thanks for quick reply

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [March 21, 2023, 4:33pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-width-resize-issue/71382/10 "2023-03-21T16:33:21Z")

</div>

Not related to the issue, but next time you need a small table for testing purpose, you can just build it like this instead:

```python
data = [
    [1, "good", "yes"],
    [2, "bad", "no"],
    [3, "error", "none"],
]

```

Simpler than building it with loops, especially considering you're entering the values manually anyway.

Also, note that you don't need to declare and initialize your loop iterator variable before hand in python (you don't need `i = 0` before the loop)
