I have successfully managed to duplicate the getPropertyValue() behavior in BOY with this code in Display Builder:
raw_string = ValueUtil.getString(ScriptUtil.getWidgetValueByName(widget, "PredefinedCurveListOutput"))
However, I have a place where I want to set the widget value in my code as well.
Is there something like a ValueUtil.setString() method for this?
--Ray
I am converting a BOY OPI to a Display Builder .bob file. One of the scripts attached to the OPI retrieves the text of another (Text Update) widget as follows:
raw_curve_file_list_widget = display.getWidget("PredefinedCurveListOutput")
raw_string = raw_curve_file_list_widget.getPropertyValue("text")
When I convert to using Display builder I have:
raw_curve_file_list_widget = ScriptUtil.findWidgetByName(widget, "PredefinedCurveListOutput")
raw_string = raw_curve_file_list_widget.getPropertyValue("text")
However, when I try to run this in Display Builder, I get the error:
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Widget 'SelectedPredefinedCurveFileInput' (textentry) has no 'text' property
How can I access the text property of this widget in Display Builder?
--Ray