# Passed Parameters not writing back to tag

**URL:** <https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515>\
**Category:** Ignition\
**Created:** [September 22, 2023, 4:40pm UTC](https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515 "2023-09-22T16:40:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon222](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@brandon222](https://forum.inductiveautomation.com/u/brandon222)\
**Post date:** [September 22, 2023, 4:40pm UTC](https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515/1 "2023-09-22T16:40:28Z")

</div>

I have a bit of a simple question. But I am getting more and more involved with prespectives originally only doing visions. My issue is that I created a view of a fan. Passed it into a different view using an embeddedview. When you press it you get a popup that has a start/stop button and a fan speed on it. The values get passed to it ok. However, when I press the start or stop or change the speed it doesn't write back to the tag. I have turned on bidirectional. But still no luck. Any thoughts?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 22, 2023, 6:07pm UTC](https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515/2 "2023-09-22T18:07:37Z")

</div>

Can you show how you're doing it ? It's pretty hard to troobleshoot something without seeing it.

---

<div class="post-metadata">

**Author:** ![brandon222](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@brandon222](https://forum.inductiveautomation.com/u/brandon222)\
**Post date:** [September 22, 2023, 8:22pm UTC](https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515/3 "2023-09-22T20:22:03Z")

</div>

![FanView](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/b/5bcab8ae0484d764a0ce84efcf0a550d7eb76a3f.png)  
 ![Overview](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/e/cea19037e819c22c392bcdf2716953c69ac41411.png)  
 ![Popup](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/e/9e19e56bad40d0afbf4d618b39b04cff7887ab8c.png)  
 ![Popup2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/f/2f3cf2c653dcc6926aaa792ba5b285c87836a84a.png)  
Sorry yes I forgot about that here are some screenshots. Let me know if there is anything else that may help.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 23, 2023, 6:44am UTC](https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515/4 "2023-09-23T06:44:47Z")

</div>

Get rid of the `fan` object property and use 2 simple value properties for speed and status. Bind those bidirectionally to their respective tags.

Don't pass UDTs as parameters, pass tags paths.  
In this case you could either pass both "status" and "speed" tags paths, or pass the path of the parent UDT then use indirect tag bindings on custom "speed" and "status" properties. This would look something like this: `{fan}/status` and `{fan}/speed`, with `{fan}` being the `view.params.fan` parameter you passed.

edit: Also, I suggest that in the future you post your questions in the "ignition" category instead of "general discussion". That's where you'll get answers.

---

<div class="post-metadata">

**Author:** ![brandon222](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@brandon222](https://forum.inductiveautomation.com/u/brandon222)\
**Post date:** [September 25, 2023, 7:56pm UTC](https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515/5 "2023-09-25T19:56:52Z")

</div>

Oh perfect! Yea that works. However how would I do that with an expression. Would I use the system.tag.readBlocking({view.params.FanPath}+"/Status"})

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 26, 2023, 7:23am UTC](https://forum.inductiveautomation.com/t/passed-parameters-not-writing-back-to-tag/79515/6 "2023-09-26T07:23:15Z")

</div>

No, use indirect bindings. There's no scripting or expression required.  
Use the path passed as parameter as the basis for the tag path, and just add the tag name to it in the binding.  
Let's say I have this folder/UDT and those tags:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/7/47e6fad871893ca75602316735f819bd8350b597.png)

The fan view takes a `path` parameter, and has 2 custom properties `speed` and `status`. Both are indirect bindings referencing the `path` parameter to build the full tag path. Here's the one for `speed`:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b7e1785f9af980234561c6a219cbe24bd6871b24.png)

Then, when you instanciate the fan view, you pass it the fan path:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/f/1fe5e0e382c6edbe491ebbac0f1fe48a40bf3e11.png)

By the way, do not confuse expressions and scripts. `system.tag.readBlocking` is a SCRIPT function.
