# Perspective - have tab container remember state

**URL:** <https://forum.inductiveautomation.com/t/perspective-have-tab-container-remember-state/24074>\
**Category:** Ignition Early Access\
**Created:** [April 12, 2019, 2:55am UTC](https://forum.inductiveautomation.com/t/perspective-have-tab-container-remember-state/24074 "2019-04-12T02:55:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [April 12, 2019, 2:55am UTC](https://forum.inductiveautomation.com/t/perspective-have-tab-container-remember-state/24074/1 "2019-04-12T02:55:11Z")

</div>

If I have a view with a tab container on it, when I open the view, it appears to open on whichever tab was selected when the view was last saved in the designer. If I navigate to a different page, and then come back to the page which contains the view which contains the tab container, is there any way of having the tab container remember its state and not switch back to the “default” tab? What if I’m not navigating to a different page, but just to a different view?

This memory would obviously be lost when the session ended, but that’s no problem - it’s just if I’m wanting to quickly switch back and forth between a couple of things, it’s annoying if my tab container keeps resetting itself every time.

---

<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:** [April 12, 2019, 3:14pm UTC](https://forum.inductiveautomation.com/t/perspective-have-tab-container-remember-state/24074/2 "2019-04-12T15:14:50Z")

</div>

> [@ASF](#):
>
> This memory would obviously be lost when the session ended, but that’s no problem

It's great you feel that way, because the mechanism you'd want to use here would be a Session custom property which correlates to `TabContainer.props.currentTabIndex`

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [April 14, 2019, 10:34pm UTC](https://forum.inductiveautomation.com/t/perspective-have-tab-container-remember-state/24074/3 "2019-04-14T22:34:23Z")

</div>

Of course! Works perfectly. Thanks!
