Results 1 to 4 of 4

Thread: use Ext.data.BufferedStore question

  1. #1

    Default Answered: use Ext.data.BufferedStore question

    Code:
                      proxy : {
    			    type : 'ajax',
    			    api : {
    				create : '/Blueberry/ObjectControlService?__state=create',
    				read : '/Blueberry/ObjectControlService?__state=read',
    				update : '/Blueberry/ObjectControlService?__state=update',
    				destroy : '/Blueberry/ObjectControlService?__state=destroy'
    			    },
    			    reader : {
    				rootProperty : 'data',
    				totalProperty : 'count'
    			    },
    			    simpleSortMode : true,
    			    simpleGroupMode : true,
    			    remoteFilter : true,
    			    groupParam : 'sort',
    			    groupDirectionParam : 'dir'
    			},
    How should I get the client to parse the format returned by the server? read ,update,destroy and create ,

  2. Are you sure you need a BufferedStore? (You most likely don't)

    But that's not the issue.

    What does the JSON look like? That is what the reader of your Proxy is to handle. You tell it how to extract records from a JSON object.

  3. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892
    Answers
    41

    Default

    Are you sure you need a BufferedStore? (You most likely don't)

    But that's not the issue.

    What does the JSON look like? That is what the reader of your Proxy is to handle. You tell it how to extract records from a JSON object.

  4. #3

    Default

    thank you reply , JSON is
    {
    datas:"{pageData:[{A:1,B:2},A:3,B:4}],pageCount:10}",
    request_date:"",
    msg:"",
    response_date:"",
    state:0
    }

    datas is des encrypt

  5. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892
    Answers
    41

    Default

    So the data looks like

    Code:
    {
        datas: "{pageData:[{A:1,B:2},A:3,B:4}],pageCount:10}",
        request_date: "",
        msg: "",
        response_date: "",
        state: 0
    }
    Formatting is extremely important for comprehension.

    Tell me you're joking. You're sending back a JSON string inside your JSON?

Similar Threads

  1. BufferedStore purgeCount Question
    By lelitzer in forum Ext JS 6.x Q&A
    Replies: 0
    Last Post: 7 Sep 2017, 4:03 AM
  2. Replies: 6
    Last Post: 7 Mar 2017, 5:09 AM
  3. BufferedStore Record Count Question
    By jhoweaa in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 22 Nov 2015, 5:25 AM
  4. Issue with 'Ext.data.BufferedStore' Ext JS 5
    By Gourav Singh in forum Ext 5: Q&A
    Replies: 9
    Last Post: 10 Feb 2015, 6:39 AM
  5. Replies: 4
    Last Post: 26 Apr 2014, 11:18 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
  •