# Stop updating bindings in container

**URL:** <https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245>\
**Category:** Ignition\
**Created:** [March 6, 2018, 8:57am UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245 "2018-03-06T08:57:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 6, 2018, 8:57am UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/1 "2018-03-06T08:57:50Z")

</div>

Is there any good way to accomplish this?

Having a dashboard’ish screen where user can click next and previous which will start an animation sliding one container out and a new one in, just don’t want hiddden containers to update when not viewed as each dashboard added builds up the requirement for the screen.

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 6, 2018, 9:02am UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/2 "2018-03-06T09:02:12Z")

</div>

Also forgot, each dashboard is using values from query tags which as set up using a leased scan class. Would be nice if stopping the container bindings also affects the scan class.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 6, 2018, 11:49am UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/3 "2018-03-06T11:49:57Z")

</div>

Not sure if the visible attribute affects the leased scan class or not, but you could set the slow rate to zero.

Otherwise, use a driven scan class and turn driving tags on/off as needed.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 6, 2018, 2:02pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/4 "2018-03-06T14:02:06Z")

</div>

I believe the only way to (safely) do this would be to animate the opening and closing of windows.

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 6, 2018, 2:20pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/5 "2018-03-06T14:20:29Z")

</div>

Does ignition have built in support for animating windows openening/closing I don’t know of? `system.gui.transform` doesn’t work.

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [March 6, 2018, 2:29pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/6 "2018-03-06T14:29:51Z")

</div>

I think you could make your sliding containers their own windows, and open/close them when the user navigates between them, playing your transform slide in/out animation in the process.  
When the sliding out animation finishes, call system.nav.closeWindow().  
For opening, you’d call system.nav.openWindow() with the original position offset, and animate it into position (slide) with transform again.

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 6, 2018, 2:57pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/7 "2018-03-06T14:57:42Z")

</div>

Think I got it working with a template using 2 template containers I can animate, The template path for these is then changed in my animation script. I can now add ‘pages’ to this template using a custom dataset property, much like the template repeater, where each row will represent a page.

Also easier now, as the dashboards was created as templates in the first place. Fortunately these dashboard templates doesn’t have any parameters configured, need to figure that out though if I ever need that.

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 6, 2018, 3:14pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/8 "2018-03-06T15:14:01Z")

</div>

Hmm, my attempt works when running preview mode inside my newly created slider template, however when I drag template out in a window, without resizing it, the layout of the dashboards is awful. The animation works great when in preview mode inside the template, but when in preview mode in a window everything is moved around randomly.

Been trying both with and without the ‘Layout Enabled’ option in the templates, nothing seems to work.

Using the dashboards directly in a window works fine, also resizing.

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [March 6, 2018, 3:23pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/9 "2018-03-06T15:23:39Z")

</div>

Yeah, sounds like you just need to get the layout of everything correct. You likely want your container templates to use absolute layouting, anchored at every side. Maybe the same for your container group template.

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 6, 2018, 3:25pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/10 "2018-03-06T15:25:03Z")

</div>

Just solved it, seems like animating a template container is making things behave strange. Wrapping each template container in a normal container solved my issue 🙂

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [March 6, 2018, 3:56pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/11 "2018-03-06T15:56:53Z")

</div>

You also have to realize that, while an object is subscribed, it will only receive changes from the server. But when an object is loaded from scratch, it needs to read all values from the server.

So if people switch often, leaving the subscriptions active might actually cause less traffic. And the animation also won’t be as smooth when you load an object from scratch.

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 6, 2018, 4:05pm UTC](https://forum.inductiveautomation.com/t/stop-updating-bindings-in-container/17245/12 "2018-03-06T16:05:07Z")

</div>

A leased tag is not subscribed from scratch when going from unused to used. If they switch often, the stall time can be set to fit the overall needs. My problem was not really the tags, just seemed like when adding dashboards for all kind of stuff, first the window loaded slower and the overall usage of resources increased.

My attempt here with two template containers ensured that only one dashboard is updating as the hidden template containers template path is set to None when outside of view.
