Results 1 to 4 of 4

Thread: How to get a value from a Ext.data.JsonStore

  1. #1

    Default How to get a value from a Ext.data.JsonStore

    I'm getting the following Json file output:
    {success:true,results:1,rows:[{"idMissao":"1","missao":"Some Text..." (...)

    How can i get the value from "missao" to a textarea?

    I'm trying with, but it shows nothing...
    {xtype:'textarea',readOnly:true,name: 'missao',valuetore_missao.getById('missao')}]});

    Thanks in advance.

  2. #2
    Sencha Premium Member goldledoigt's Avatar
    Join Date
    Jul 2007
    Location
    Paris, France
    Posts
    56

    Default

    Code:
    var value = store_missao.getAt(rowIndex).get("missao");
    ?
    Goldledoigt

  3. #3
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,751

    Default

    since you are using a json-store i would bet that your store is not loaded, when you are creating the textarea.

    if you generally want to load a form, use BasicForm.load().
    if you want to use the store you have, set a listener on store.load.


    kind regards,
    tobiu
    Best regards
    Tobias Uhlig

  4. #4

    Default

    thanks, i already solved my problem.
    Here is a tutorial that may help others:
    http://www.extjs.com/learn/Tutorial:...mitting_a_Form

    b regards,
    Joo Cruz

Posting Permissions

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