[CLOSED] Original json data from store

  1. #1

    [CLOSED] Original json data from store

    Hello
    I would like to get original json data from the store (client side)
    Note that by "original" I do not mean "not modified" but once that were sent from server before processing by reader

    So if I have a store like
    <ext:Store AutoLoad="true"  runat="server" ID="storeRecentTRs" PageSize="5" RemotePaging="true" RemoteSort="true" >
    			
    			<Proxy>
    				<ext:AjaxProxy >
    					<ActionMethods Read="POST" />
    					<Reader>
    						<ext:JsonReader TotalProperty="Total" RootProperty="Source"/>
    					</Reader>
    				</ext:AjaxProxy>
                 </Proxy>
    and from server comes something like

    {
    Total:30,
    SomeProperty:'xxx',
    Source:[/* data array for store itself */]
    }

    I would like to get value of SomeProperty

    seems that

     store.getProxy().getReader().rawData
    worked in Ext4 (http://stackoverflow.com/questions/9...ext-data-store) , but I'm getting undefined now

    thanks
    Zdenek
    Last edited by fabricio.murta; May 24, 2016 at 7:43 PM. Reason: no user feedback for 7+ days
  2. #2
    Hello Zdenek!

    Does using <ext:JsonReader TotalProperty="Total" RootProperty="Source" KeepRawData="true" /> help you?
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Bind store with json data during DirectEvents
    By maurox in forum 3.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 10, 2015, 11:47 AM
  2. [CLOSED] serialize store data to json as array
    By bogc in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 18, 2013, 8:26 PM
  3. Replies: 1
    Last Post: Jun 18, 2013, 3:56 PM
  4. Store original object from data source
    By nextSTEP in forum 1.x Help
    Replies: 8
    Last Post: Feb 16, 2011, 1:12 PM
  5. [CLOSED] Store Data as JSON
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 08, 2010, 1:25 AM

Posting Permissions