Thank you very much, Xihui. That works perfectly.
Chris
----- Original Message -----
From: "Xihui Chen" <[email protected]>
To: "Christian Roehrig" <[email protected]>, [email protected]
Sent: Tuesday, May 29, 2012 12:44:54 PM
Subject: RE: CSS-BOY combo boxes
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
- References:
- RE: CSS-BOY combo boxes Chen, Xihui
- Navigate by Date:
- Prev:
RE: CSS-BOY combo boxes Chen, Xihui
- Next:
calc VAL field not updating from bi VAL field J. Lewis Muir
- 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:
RE: CSS-BOY combo boxes Chen, Xihui
- Next:
calc VAL field not updating from bi VAL field J. Lewis Muir
- 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
|