-
How can I read the value of a widget from within a javascript? I have opi's and javascripts from an old release of Yamcs Studio (4 or 5 years old). The following script used to work: importPackage(Packages.org.csstudio.opibuilder.scriptUtil); var strMode = VTypeHelper.getString(display.getWidget('inMode').getPropertyValue('pv_value')); But now the "var strMode" line errors out indicating "VTypeHelper" is undefined. What's the right way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you try: that’s where VTypeHelper is located these days For issueCommand we also have a more convenient variant (subject to preference), to do it like this:
i.e. no string concats |
Beta Was this translation helpful? Give feedback.
Can you try:
importPackage(Packages.org.yamcs.studio.data);
that’s where VTypeHelper is located these days
For issueCommand we also have a more convenient variant (subject to preference), to do it like this:
i.e. no string concats