1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    204
    Vote Rating
    1
    marxan is on a distinguished road

      0  

    Default Problem loading Json store into a comboBox

    Problem loading Json store into a comboBox


    Hi, there is my problem: I'm trying to load data from a json into a combo and I get the following message:
    "this.getRawValue() is undefined".

    My JSON is well form, validated with a JSON validator and is well passed to the page. Anyone could help me on this matter?

    Thanks in advance.

    Code:
        <script type="text/javascript">
       
               Ext.onReady(function(){
                
                var directorate = Ext.data.Record.create([
                    {name:'fullName', type:'string'}
                ]);
                
               var myReader = new Ext.data.JsonReader({
               totalProperty: 'DATASET',
               root: 'ROWS',
               idProperty: 'ID'
               },directorate
              );
              
              var Mystore = new Ext.data.JsonStore({
                    id: 'directorateId',
                  totalProperty: 'totalCount',
                  root: 'ROWS',
                  url: '../components/JSONDirectorate.cfc',
                  baseParams
                  :{
                   method: 'GetJsonDirectorate',
                   returnFormat: 'JSON'
                  },
                  //define the JSON Reader for the data. 
                  reader: myReader,
                  //Fields read in
                  fields:['fullName']
              });
              Mystore.load();
              
               var combo = new Ext.form.ComboBox({
                store: Mystore,
                displayField:'fullName',
                typeAhead: true,
                triggerAction: 'all',
                emptyText:'Select a directorate...',
                selectOnFocus:true,
                applyTo: 'local-dir'
        });
            })
            
            
        
        </script>

  2. #2
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    204
    Vote Rating
    1
    marxan is on a distinguished road

      0  

    Default SOLVED

    SOLVED


    The problem was in the combo component, I'm using renderTo instead of applyTo and it works fine.

Similar Threads

  1. Loading a comboBox from a JSON store
    By cwolves in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 20 Oct 2010, 10:11 AM
  2. Problem loading data into a Json store
    By r_honey in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 15 Feb 2010, 8:21 AM
  3. problem loading json object into store/gridpanel
    By hadi78 in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 30 Oct 2009, 6:55 AM
  4. Problem Loading JSON Store
    By GTCulbreth in forum Ext 1.x: Help & Discussion
    Replies: 18
    Last Post: 5 Mar 2008, 4:02 AM
  5. ComboBox JSON store multiuse Problem
    By mikegiddens in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 12 Mar 2007, 8:33 PM
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi