Experimental Physics and Industrial Control System
Hi Chris,
Please try following code:
importPackage(Packages.java.util);
widget.setPropertyValue("items", Arrays.asList(["one", "two", "three"]));
Currently, the string list property only accept Java List, but what you have proposed is reasonable. I will add that support in next version.
Thanks,
Xihui
________________________________________
From: Christian Roehrig [[email protected]]
Sent: Monday, May 28, 2012 10:39 PM
To: [email protected]
Subject: CSS-BOY combo boxes
Hello,
Perhaps I am missing something, but I am unable to dynamically populate the combo box widget's list items. I have tried three variations of the same line in a JavaScript script. I have also tried these lines with forceFire = true.
widget.setPropertyValue("items", "one, two, three");
widget.setPropertyValue("items", "[one, two, three]");
var listArray = ["one", "two", "three"];
widget.setPropertyValue("items", listArray);
Would someone please tell me what I am doing wrong? Thank you.
Chris Roehrig
- Replies:
- Re: CSS-BOY combo boxes Christian Roehrig
- References:
- CSS-BOY combo boxes Christian Roehrig
- Navigate by Date:
- Prev:
RE: On compatibility michael.abbott
- Next:
Re: CSS-BOY combo boxes Christian Roehrig
- 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
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
CSS-BOY combo boxes Christian Roehrig
- Next:
Re: CSS-BOY combo boxes Christian Roehrig
- 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
2018
2019
2020
2021
2022
2023
2024