Results 1 to 2 of 2

Thread: help! How can i changed the data which is from a jsonp request

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    1

    Default help! How can i changed the data which is from a jsonp request

    I am a fresh on Extjs4. Now the problem is that, I can get a specified data from other server.Then it's data format can not meet my request.So I want to changed the data format when i get it.
    e g.
    my model is fields: ['text', 'id', 'leaf', 'sort'],
    my get data [{"fields":[{"name":"text","value":"test"},{"name":"id","value":null},{"name":"leaf","value":null},{"name":"sort","value":null}],id:'8f266b52-8bc7-41ab-89a7-727f96e97033'}]

    I just want to know where or which event can let me to change the data format?
    Thank you

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347

    Default

    You can do the transform with convert config of Ext.data.Field

Posting Permissions

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