Results 1 to 3 of 3

Thread: JsonReader and recordType is undefined

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Aug 2010
    Vote Rating

    Default JsonReader and recordType is undefined


    I am trying to do my first JsonStore to work but I keep receiving: recordType is undefined.
    Here is the the interesting part:

    var TestRecord =[ // creates a subclass of
    {name: 'lanID'},
    {name: 'translation'}

    var writer = new{
    encode: true,
    writeAllFields : true

    var reader = new{
    totalProperty: 'total',
    successProperty: 'success',
    root: 'data',
    idProperty: 'lanID'

    var proxy = new{
    api: {
    read : '/ajax/remote?doAction=AJAX_saveAdditionalRemark&action=read',
    create : '/ajax/remote?doAction=AJAX_saveAdditionalRemark&action=create',
    update: '/ajax/remote?doAction=AJAX_saveAdditionalRemark&action=update',
    destroy: '/ajax/remote?doAction=AJAX_saveAdditionalRemark&action=destroy'

    var propertyStore = new{
    id: 'user',
    autoLoad: false,
    proxy: proxy,
    writer: writer,
    reader: reader,
    autoSave: false


    When I execute this I can see form the firebug that the
    "var s = this.meta, Record = this.recordType,"

    Record is undefined. Although I specify the type at the reader and I have tried specify the fields at the store with no success.

    Any help would be appreciated.
    Thank you
    Last edited by pouli; 6 Oct 2010 at 8:02 AM. Reason: Changed "RecordType is undefined" --> Record is undefined

Similar Threads

  1. [solved] JsonStore.recordType returns undefined
    By flanders in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 21 Jun 2010, 2:31 AM
  2. [1.1.1] JsonReader: mapping to undefined element
    By andrei.neculau in forum Ext 1.x: Bugs
    Replies: 6
    Last Post: 17 Sep 2009, 11:57 PM
  3. Dynamic recordType for JsonReader in Store
    By cboden in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 Jun 2008, 9:59 AM
  4. Replies: 4
    Last Post: 2 Jan 2008, 3:17 PM

Tags for this Thread

Posting Permissions

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