Passed Parameters not writing back to tag

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?

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





Sorry yes I forgot about that here are some screenshots. Let me know if there is anything else that may help.

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.

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"})

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

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:

Then, when you instanciate the fan view, you pass it the fan path:
image

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