Results 1 to 2 of 2

Thread: Error while selecting the combo box for the second time.

  1. #1

    Default Error while selecting the combo box for the second time.

    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.

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •