g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: RE: CSS-BOY combo boxes
From: "Chen, Xihui" <chenx1@ornl.gov>
To: Christian Roehrig <roehrig@aps.anl.gov>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 29 May 2012 13:44:54 -0400
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 [roehrig@aps.anl.gov]
Sent: Monday, May 28, 2012 10:39 PM
To: tech-talk@aps.anl.gov
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  <20122013  2014 
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  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·