# Subview params working in one spot not another?

**URL:** <https://forum.inductiveautomation.com/t/subview-params-working-in-one-spot-not-another/55420>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [January 26, 2022, 8:53pm UTC](https://forum.inductiveautomation.com/t/subview-params-working-in-one-spot-not-another/55420 "2022-01-26T20:53:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [January 26, 2022, 8:53pm UTC](https://forum.inductiveautomation.com/t/subview-params-working-in-one-spot-not-another/55420/1 "2022-01-26T20:53:14Z")

</div>

I have an existing table that has a subview. The subview options are setup like this -  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/037661e818cac4b615d52f1743141239ee3d3b08.png)

and the subview has 3 params each corresponding to a column in the parent table like this  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/7/f79f1d756a0c984030c5cbce1e576d8b3e0086b3.png)

and this works properly. The parent table’s data for these columns flow through into 4 text labels nicely.

I am tasked with improving this - we want to show a different subview depending on the value of the `tableName` parameter.

I have a new view called LogFiles\_Subview\_BK\_2 with the same params  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/e/bef5c73f4a34c28dd0a9c413ef92db2f1a4ac8cf.png)

and I have a copy of the entire view I’m developing one with the table. The subview options are setup like this -  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/e/4e4e3b8ec9534bd42926f3efec3c9b0147d2dfcc.png)

My LogFiles\_Subview\_BK\_2 is a Tab container and I am using a binding on the currentTabIndex like  
`if({view.params.tableName}='Table0',0,1)`. I also made the tab height 0 so the user can’t manually switch.

However, it seems only be using whatever value was saved in designer. Nothing seems to be coming through. I can’t tell what is wrong. Any ideas on what I am missing here?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [January 27, 2022, 11:40am UTC](https://forum.inductiveautomation.com/t/subview-params-working-in-one-spot-not-another/55420/2 "2022-01-27T11:40:20Z")

</div>

one seems to be {value:{Plantnumber, tableName…}}  
the other is {Plantnumber, tableName…}

those do not behave the same.  
value gets automatically pased down the viewparams based on the data of the row.  
The other needs to be bassed down manualy

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [January 27, 2022, 1:18pm UTC](https://forum.inductiveautomation.com/t/subview-params-working-in-one-spot-not-another/55420/3 "2022-01-27T13:18:33Z")

</div>

Thank you. After a long day I needed the fresh eyes - I didn’t notice the difference.
