PDA

View Full Version : Error while selecting the combo box for the second time.



soubalaji
24 Apr 2013, 6:15 PM
Hi,

I am new to json. I am populating the two combo box.
second combo box needs to be populated based on the first combo selection.

whereas as when i selected the first combo for the second time i am getting the second combo value which is for the previous selection value.

(i.e.)
First combo Second combo
First selection India Tamil Nadu
Second selection USA Tamil Nadu (Instead of NY, Tamil Nadu getting populated)

second combo box is not populated based on the first combo box selection. If i do the same for the second time, i am not getting the updated one in the list.

coding part:

obj["store"] = new ext.data.JasonStore({
root: "root",
fields: [{
name: 'id',
type: 'string'
}, {
name: 'log',
type: 'string'
}],
data: wslist
});

ws.store = obj[store];
ws.setvalue(params.stream);

Can any one help me to resolve this.

Thanks,
shanks.

slemmon
26 Apr 2013, 8:09 AM
I'm afraid you'll need to share more of your code/logic. You're setting up the two combos with separate data stores, though, yes?