# Issue with Indirect property binding bad\_notfound ( perspective pop up template for components onClick() )

**URL:** <https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [July 7, 2022, 3:47am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603 "2022-07-07T03:47:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![uy\_huynh](https://avatars.discourse-cdn.com/v4/letter/u/54ee81/32.png) [@uy\_huynh](https://forum.inductiveautomation.com/u/uy_huynh)\
**Post date:** [July 7, 2022, 3:47am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/1 "2022-07-07T03:47:06Z")

</div>

Hi all,  
Please have a look at these images. I believe it has something to do with syntax. But I haven’t found anything in ignition doc. Any ideas?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/1/91c75793b9b45b34cd9d27b113144f2943caaf2b.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/5495eab0f7b4f5207600cbf50123b4d2c979730c.png)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 7, 2022, 4:19am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/2 "2022-07-07T04:19:07Z")

</div>

The `Bad_NotFound` is because you are using an Indirect Tag Binding and what you have entered into the TagPath does not resolve to a valid Tag Path.

It is expecting something like:

```auto
[yourTagProvider]Path/To/Your/Tag{CV_value}

```

[https://docs.inductiveautomation.com/display/DOC81/Tag+Bindings+in+Perspective](https://docs.inductiveautomation.com/display/DOC81/Tag+Bindings+in+Perspective)

Scroll Down to Indirect Tag Bindings.

---

<div class="post-metadata">

**Author:** ![uy\_huynh](https://avatars.discourse-cdn.com/v4/letter/u/54ee81/32.png) [@uy\_huynh](https://forum.inductiveautomation.com/u/uy_huynh)\
**Post date:** [July 7, 2022, 4:29am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/3 "2022-07-07T04:29:42Z")

</div>

Thanks for your reply Irose. I’m trying to use the indirect tag binding for a param of a view, not an OPC tags. Same as this [https://forum.inductiveautomation.com/t/popup-templates-perspective/55031](https://forum.inductiveautomation.com/t/popup-templates-perspective/55031)

In the docs, the instruction was for OPC tags, Irose.

---

<div class="post-metadata">

**Author:** ![uy\_huynh](https://avatars.discourse-cdn.com/v4/letter/u/54ee81/32.png) [@uy\_huynh](https://forum.inductiveautomation.com/u/uy_huynh)\
**Post date:** [July 7, 2022, 4:31am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/4 "2022-07-07T04:31:46Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/7/27394c103a950f1ec42947017fe425aa31e53ffc.jpeg)

This!

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 7, 2022, 4:47am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/5 "2022-07-07T04:47:36Z")

</div>

It looks like CV\_value is not a tagpath but a value. You can’t use a tag binding to bind the value of a tag using the value itself. You should be passing in the path to your UDT or folder and then use an indirect tag binding to this as @lrose mentioned

If you pass the values of tags into a popup, then these values will be _static_; they will not update with new values in the popup, hence needing to pass in the path to the tag instead.

Consider the status of someone’s car. If I said that the car is broken, you have no idea who’s car I’m talking about and you have no way to get updated information. If i give you the person’s location, name, and contact details, then you can ask them how their car is and get constant updates

---

<div class="post-metadata">

**Author:** ![uy\_huynh](https://avatars.discourse-cdn.com/v4/letter/u/54ee81/32.png) [@uy\_huynh](https://forum.inductiveautomation.com/u/uy_huynh)\
**Post date:** [July 7, 2022, 5:26am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/6 "2022-07-07T05:26:41Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a915c126756b79259fc8b4e56e0b7788f28ddb27.jpeg)

I got your idea! But quite struggling to make it works. So what should I do now is linking the path of components to UDT? How about the connection between connection of view params and components? I thought we should indirect binding the components to the view params, and link the view params with the OPC tag path inside pop up as the other thread mentioned?  
Also, to do the write/update opc tags value, should we need to turn on the write/change mode?  
Sorry for long question and I’m quite frustrating with recent problems happen when it comes to scada/hmi design. Headache 💫

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 7, 2022, 11:04pm UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/7 "2022-07-07T23:04:20Z")

</div>

Whatever launches that popup should be doing something like this:

```auto
view = 'Popup_Views/Popup-CV'
id = view
params = {'tagPath': 'LCC_PCV05A_CV'}
system.perspective.openPopup(id=id, view=view, params=params)

```

Then in your popup, you should have this for your `params`:

```auto
tagPath:value

```

What I normally do is then create custom props on your view to bind to the tag values I need to use, unless you need to write back to them.  
E.g. under `view.custom` have:

```auto
tagName: 
tagValue:

```

Bind these using indirect tag bindings similar to this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/8/68248909faf852c9b247843e82f52041e4e85532.png)

but you would use `{1}.Documentation` and `{1}` respectively for the custom props above

Then you can bind to these custom props wherever you need to display them. For any tags that need to be bi-directionally bound (for writing back to them) I would create the indirect tag binding with bidirection enabled directly on that component

---

<div class="post-metadata">

**Author:** ![uy\_huynh](https://avatars.discourse-cdn.com/v4/letter/u/54ee81/32.png) [@uy\_huynh](https://forum.inductiveautomation.com/u/uy_huynh)\
**Post date:** [July 8, 2022, 11:28am UTC](https://forum.inductiveautomation.com/t/issue-with-indirect-property-binding-bad-notfound-perspective-pop-up-template-for-components-onclick/61603/8 "2022-07-08T11:28:40Z")

</div>

Thanks, nminchin and irose. You two helped me a lot. Been testing all day and it’s working great now.  
FYI, here is my set up:  
First, create some values in custom view

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/4/c43aaf891e73227ca5134507a4a7f284be6e62ec.jpeg)

Then, indirect these value to tag path

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/a/8aae06fc8fa0fc88124c1c606545b420ef875a84.jpeg)

Then, property binding from components to view custom values

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/727a5f0f4527ef952325d503b1b8f939297b2a83.jpeg)

Now, we have _view custom value x tag path, custom value x components_

Last step, the pop up will do the last job is trigger pop up with tagPath in parameter itself

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4f61817d39d272657d47c9ec752dab6949b27be6.jpeg)

Simple! But took me days and several re-read nminchin and irose reply to figure it out 😬
