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  2012  <20132014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014 
<== Date ==> <== Thread ==>

Subject: How to set property 'items' of ComboBox from a javascript in CSS BOY
From: <Xinyu.Wu@csiro.au>
To: <tech-talk@aps.anl.gov>
Date: Thu, 14 Feb 2013 10:00:26 +0000
Hi,

I have a combo box, and I would like to set its items (ie the available options) dynamically using a javascript.

I tried the following and it did not work.

display.getWidget("BitFileComboBox").setPropertyValue("items",  "[choice1, choice2, choice3]");

I also tried array object and it did not work either:

var mycars = new Array();
mycars[0] = "choice1";
mycars[1] = "choice2";
mycars[2] = "choice3";
display.getWidget("BitFileComboBox").setPropertyValue("items", mycars);

Thanks,

Xinyu WU
ASKAP Computing                       
Australia Telescope National Facility 
CSIRO Astronomy and Space Science
phone: +61 2 9372 4727
postal: PO Box 76 Epping, NSW. 1710



Replies:
Re: How to set property 'items' of ComboBox from a javascript in CSS BOY Pavel Maslov

Navigate by Date:
Prev: RE: streamDevice: how to read a value as fast as possible? Mark Rivers
Next: Re: How to set property 'items' of ComboBox from a javascript in CSS BOY Pavel Maslov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014 
Navigate by Thread:
Prev: RE: header files in snc code Mark Rivers
Next: Re: How to set property 'items' of ComboBox from a javascript in CSS BOY Pavel Maslov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·