I have a button which, when clicked, should write a 1 to the “Start” tag in a particular UDT. instance. The desired instance is defined by a view parameter: tagPath. As far as I can tell, at this stage we have to manually write scripts to write to tags, and I figure it should be possible to construct a tag path by accessing the view parameter, and appending ‘/Start’ to the end.
I can’t work out how to get view parameters from the script though - the documentation on perspective scripting is still a little thin, and doesn’t cover that possibility.
I’m imagining something along the lines of
system.tag.write(self.view.getParam('tagPath') + '/Start', 1), but nothing I’ve tried along those lines has worked. How might I go about this?