PDA

View Full Version : null value in the combox...



petcy
7 Oct 2010, 7:49 PM
i want to get all the values of a personId from the database to a combobox

the id is given in a text field...

and i'm getting all values in the array but the loading combobox prblm

i need to load the values to the combobox on the textfield change focus event how??? hurry...:((

tobiu
8 Oct 2010, 3:48 AM
so, why is this an open discussion?
well, it's not.
it's a help request.

so, which forum do you think you get an answer from the support?


kind regards,
tobiu

petcy
8 Oct 2010, 4:04 AM
is this the open discussion forum right???

if u know the answer pls put it down ...

Jaitsu
8 Oct 2010, 4:16 AM
I don't think you're going to get far with that attitude, this is the Open Discussion forum, so if you need help then you post in the Ext Help forum

you need use a store to load data into your combobox, have a look in the API Docs

petcy
8 Oct 2010, 4:25 AM
oh....sorry...
now i got thing..

i posted may threads in this forum... coz i've seen many similar threds here...

i just noticd ext.help forum.. i'm ready to move to there

tobiu
8 Oct 2010, 5:45 AM
try something like



myTextfield.on('blur', function(field){
myCombo.setValue(field.getValue());
})


or



myTextfield.on('blur', function(field){
myCombo.getStore().load(...);
})



kind regards
tobiu