EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: [UNTRUSTED] Problem accessing TextUpdate text property in Display Builder script.
From: "Gregory, Ray" <[email protected]>
To: "Gregory, Ray" <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 22 May 2018 21:48:33 +0000

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

 

 

 

From: [email protected] <[email protected]> On Behalf Of Gregory, Ray
Sent: Tuesday, May 22, 2018 5:19 PM
To: [email protected]
Subject: [UNTRUSTED] Problem accessing TextUpdate text property in Display Builder script.

 

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


References:
Problem accessing TextUpdate text property in Display Builder script. Gregory, Ray

Navigate by Date:
Prev: msi "Could not open" error on Windows with file absolute path J. Lewis Muir
Next: Re: msi "Could not open" error on Windows with file absolute path Johnson, Andrew N.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Problem accessing TextUpdate text property in Display Builder script. Gregory, Ray
Next: Re: [UNTRUSTED] Problem accessing TextUpdate text property in Display Builder script. Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024