# Embedded view params deleted by itself after bind to a tag

**URL:** <https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784>\
**Category:** Ignition Early Access\
**Created:** [November 8, 2019, 11:08am UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784 "2019-11-08T11:08:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 8, 2019, 11:08am UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/1 "2019-11-08T11:08:40Z")

</div>

Hello,  
I create a embedded view with some params on it to pass my tag. After I instance it in view and binding it bidirectional to a tag the params in the main view deleted!!! This happen because by default when bind a tag to a property the property change to be not persistent.

I also test to see what happen if I change the params to be not persistent in embedded view. After I do that and close the view and open it, all params that I change to be not persistent are gone and deleted.  
I use 8.0.6 RC1.  
Is anyone else see this problem?  
I attach my template.  
This cause time to time the value of bidirectional tag get null.

[light switch.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9f9f82a686404383dcac35cde2fd0df219a965d5.zip) (6.1 KB)

---

<div class="post-metadata">

**Author:** ![RadicalRumin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/radicalrumin/32/11543_2.png) [@RadicalRumin](https://forum.inductiveautomation.com/u/RadicalRumin)\
**Post date:** [November 8, 2019, 12:32pm UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/2 "2019-11-08T12:32:09Z")

</div>

I think you’re not supposed to bind things to params, instead pass values along as params on your embedded view.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/34fee274ab59724b23405a536766ff9fb06fa142.png)

if the propties under the params prop are bound to tags there should be no problem.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 8, 2019, 1:01pm UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/3 "2019-11-08T13:01:43Z")

</div>

Hi  
Of course I bind the tag to item under params.  
But there is bug here in this version cause view lost its params items.

---

<div class="post-metadata">

**Author:** ![RadicalRumin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/radicalrumin/32/11543_2.png) [@RadicalRumin](https://forum.inductiveautomation.com/u/RadicalRumin)\
**Post date:** [November 8, 2019, 1:04pm UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/4 "2019-11-08T13:04:47Z")

</div>

If you're sure it's a bug, you can make a bug report. That way someone with more experience and knowledge than I do will probably look at it.

> [@\[Bug\] How to write a quick and useful bug report](http://forum.inductiveautomation.com/t/bug-how-to-write-a-quick-and-useful-bug-report/20077):
>
> A good bug report needs four pieces of information to help us find, understand and fix the problems you share with us. 1. The behavior you unexpectedly encountered - One line is fine, and you can also use it as your post title (though remember to start your title with “[Bug]”). You may also paste a stacktrace or lines from the log here. 2. The behavior you were expecting to see - again, one line is fine. 3. A list of the steps you took that exposed the issue - including your starting point. …

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 8, 2019, 1:14pm UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/5 "2019-11-08T13:14:11Z")

</div>

The ignition 8 Early Access forum is exactly for this. To test the and share any problem in product, so some one from IA see and note and fix that.  
By the way you are not helping people by posting this kind of answers. Only make my post busy.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [November 8, 2019, 1:42pm UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/6 "2019-11-08T13:42:20Z")

</div>

Did you change the persistent property for the entire ‘params’ item or the individual params within it?

In my opinion, if the entire param object is set to not be persistent, that the sub parameters might get deleted since that is the ‘value’ of that property.

Edit: Hmmm tried it both ways, persistent does seem to remove params. I am leaning towards calling it a bug as well

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 8, 2019, 2:01pm UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/7 "2019-11-08T14:01:27Z")

</div>

Hello Garrett  
Thanks for your test.  
Believe me, this make me crazy for a week. This problem is very random and cause the tag get null value randomly.

One thing I should mention the params item that define as object and has sub item, the problem show itself severely.

I wonder why any one else doesn’t see this problem until now?? Every one use embedded view and should see this if they develop any thing.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 9, 2019, 7:43pm UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/8 "2019-11-09T19:43:41Z")

</div>

Any one from IA can test and confirm it?  
Today I see after restart my gateway some of my tag get null value because of that. The only thing that work for now is to use pass tag path and use tag binding.

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [November 13, 2019, 12:31am UTC](https://forum.inductiveautomation.com/t/embedded-view-params-deleted-by-itself-after-bind-to-a-tag/29784/9 "2019-11-13T00:31:14Z")

</div>

This is the same issue that is mentioned in this post:

> [@\[Bug-15438, 15439\] Tags get null value randomly when bind to params of embedded view](http://forum.inductiveautomation.com/t/bug-15438-tags-get-null-value-randomly-when-bind-to-params-of-embedded-view/29815):
>
> Hello, When I bind a tag to an embedded view params, the tag value get randomly get null value. It happen when gateway reach end of 2 hours trial mode or restarting or saving the view containing the embedded view with bind tag to its params. My best guess it because the bug of persistent option of binding. I see this behavior on both 8.0.3 and 8.06 rc1. I should be mention this bug only valid for params of embedded view and binding tag to other props of any component works just fine.

Please follow along on that post for updates.
