Results 1 to 2 of 2

Thread: Store missing the paramsAsJson property

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default Unanswered: Store missing the paramsAsJson property

    I use Sencha Architect 3.51
    I already have a ExtJs Application developed in there I use the following Store
    Code:
    Ext.define('AppRest.store.dsKundeliste', {
        extend: 'Ext.data.Store',
        requires: [
            'AppRest.model.mdKundeliste',
            'Ext.data.proxy.Ajax',
            'Ext.data.reader.Json',
            'Ext.data.writer.Json'
        ],
        constructor: function(cfg) {
            var me = this;
            cfg = cfg || {};
            me.callParent([Ext.apply({
                storeId: 'dsKundeliste',
                model: 'AppRest.model.mdKundeliste',
                proxy: {
                    type: 'ajax',
                    $configStrict: false,
                    api: {
                        create: '/datasnap/rest/TServerMethods1/%22Kundeliste%22/create',
                        read: '/datasnap/rest/TServerMethods1/%22Kundeliste%22/read',
                        update: '/datasnap/rest/TServerMethods1/%22Kundeliste%22/update',
                        destroy: '/datasnap/rest/TServerMethods1/%22Kundeliste%22/destroy'
                    },
                    noCache: false,
                    url: '/datasnap/rest/TServerMethods1/%22Kundeliste%22/read',
                    actionMethods: {
                        create: 'POST',
                        read: 'POST',
                        update: 'POST',
                        destroy: 'POST'
                    },
                    paramsAsJson: true,
                    reader: {
                        type: 'json',
                        rootProperty: 'data'
                    },
                    writer: {
                        type: 'json',
                        allowSingle: false,
                        rootProperty: 'data'
                    }
                },
            }, cfg)]);
        }
    });
    But this Store configuration seems not compatible to Sencha Touch 2.4.
    The paramsAsJson property is in Sencha Touch not available.
    The buildRequest function also seems to be not available.
    Is there a way to configure the store so that it passes the parameters as POST-json?
    Thanks in advance.

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,531
    Answers
    392
    Vote Rating
    257
      0  


    Join me at SenchaCon 2016!

Similar Threads

  1. sortParam is sent as String when using paramsAsJson: true
    By dragos.damian in forum Ext 5: Q&A
    Replies: 6
    Last Post: 21 Apr 2015, 9:06 AM
  2. Replies: 1
    Last Post: 4 Nov 2014, 3:00 PM
  3. [FIXED] AjaxProxy with paramsAsJson
    By bob4ever in forum Ext 5: Bugs
    Replies: 1
    Last Post: 15 Apr 2014, 11:47 PM
  4. Ext.data.Model missing store property
    By gilfeather in forum Ext: 4.x Beta
    Replies: 6
    Last Post: 7 Jan 2012, 1:56 AM
  5. [FIXED] Json Tree Store / XML Tree Store property missing
    By Stephan Schrade in forum Ext Designer: Bugs
    Replies: 1
    Last Post: 23 Sep 2011, 2:51 PM

Posting Permissions

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