PDA

View Full Version : Updating TextField



mayur.tendulkar
18 Oct 2010, 10:25 PM
Hi,
I've one field set, inside which there is one TextField (lonField) and one Slider (rangeField). Whenever, slider will change the value, the value must appear in TextField. I added a listener but it doesn't work. Let me know how to do it. I've used following code:


rangeSlider.addListener('change', function (o1, o2, o3, o4) {
lonField.value = o4;
fieldSet.doComponentLayout();
pan.doLayout();
});


Thanks in advance.

evant
18 Oct 2010, 10:39 PM
Use the setValue method.

mayur.tendulkar
18 Oct 2010, 10:48 PM
Thanks Evan,
I'm making silly mistakes. Thank you very much.