# How to make the perspective table the same function as vision power table configure Editor

**URL:** <https://forum.inductiveautomation.com/t/how-to-make-the-perspective-table-the-same-function-as-vision-power-table-configure-editor/66720>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting, perspective\
**Created:** [November 20, 2022, 8:33am UTC](https://forum.inductiveautomation.com/t/how-to-make-the-perspective-table-the-same-function-as-vision-power-table-configure-editor/66720 "2022-11-20T08:33:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yifeiliu08](https://avatars.discourse-cdn.com/v4/letter/y/bbe5ce/32.png) [@yifeiliu08](https://forum.inductiveautomation.com/u/yifeiliu08)\
**Post date:** [November 20, 2022, 8:33am UTC](https://forum.inductiveautomation.com/t/how-to-make-the-perspective-table-the-same-function-as-vision-power-table-configure-editor/66720/1 "2022-11-20T08:33:56Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/6/d64ce9aeffa2503f524d09ee737ce49e3c94bb8e.png)  
in vision power table I can change the column data by dropdown list

```auto
	if colName=='DefectPostion':
		return {'options':[(u'',u'无缺陷'),(u'Splice',u'拼接区内'),(u'Body',u'拼接区外')]}
	if colName=='DefectType':
		return {'options':[(u'',u'无缺陷'),('K',u'K=凹陷(表面，挤出线，肩部)'),('F',u'F=线型痕迹，表面气泡'),('G',u'G=切割线，表面切割出现色差'),('HTC',u'HTC原材料'),('OSH',u'OSH原材料'),('CSO',u'CSO客户返修'),('A',u'A=表面光洁度，表面色差，表面异物'),('B',u'B=带体变形，或拱起，或表面起伏'),('C',u'C=滑动层织物缺陷(一般是滑动层织物供应商的缺陷)'),('D',u'D=滑动层织物在唇口变形，起皱，或打折'),('E',u'E=长度错误'),('H',u'H=切削错误，挤出线切削错误'),('L',u'L=帆布皱')]}
	if colName=='Cmode':
		return {'options':[('X','X'),('2X','2X'),('3X','3X'),('S','S'),('R','R'),('CZX','CZX')]}

```

the code like upside, is this function also can be valid in perspective table?

I have try use view path this dropdown function is not what I have in vision.

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

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 20, 2022, 10:03am UTC](https://forum.inductiveautomation.com/t/how-to-make-the-perspective-table-the-same-function-as-vision-power-table-configure-editor/66720/2 "2022-11-20T10:03:41Z")

</div>

1. On the _SELECT_ view create a view parameter called `ddOptions` (or whatever you like).
2. Create a property binding on `props.options` to `view.params.ddOptions`.
3. In your table you need to pass parameters to the table's `props.columns.1.viewParams`. This will be in the form of a list of dictionaries like so:

```json
[
  {
    "value": 1,
    "label": "Item 1"
  },
  {
    "value": 2,
    "label": "Item 2"
  }
]

```

---

<div class="post-metadata">

**Author:** ![yifeiliu08](https://avatars.discourse-cdn.com/v4/letter/y/bbe5ce/32.png) [@yifeiliu08](https://forum.inductiveautomation.com/u/yifeiliu08)\
**Post date:** [November 21, 2022, 8:17am UTC](https://forum.inductiveautomation.com/t/how-to-make-the-perspective-table-the-same-function-as-vision-power-table-configure-editor/66720/3 "2022-11-21T08:17:21Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/8/0864985985f1e6b397b6dc634eb1ea71d9b936e4.png)

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/9/3985e6ae87ae7c2eaa2cfeb79eb0c519d1c90b40.png)  
I am new to perspective, I come to step 3, and how to pass the parameters to that view parameters?

---

<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:** [November 21, 2022, 9:36am UTC](https://forum.inductiveautomation.com/t/how-to-make-the-perspective-table-the-same-function-as-vision-power-table-configure-editor/66720/4 "2022-11-21T09:36:19Z")

</div>

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

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