[CLOSED] send object[] using DirectMethod

  1. #1

    [CLOSED] send object[] using DirectMethod

    Hi All,

    I am trying to send store changed data to server.

    Server side: create panel grid toolbar item
    var toolBarButton = new Ext.Net.Button("Save");
    toolBarButton.OnClientClick = "var data=this.up().up().getStore().getModifiedRecords(); #{DirectMethods}.SaveSubitems(data);";
    Server side: try to get modified records
    public void SaveSubitems(object[] modifiedData)
    { }
    Error: Uncaught RangeError: Maximum call stack size exceeded

    Is there any way to get all modified records? If yes, please, provide an example.

    Thank you.
    Last edited by Daniil; Jun 12, 2014 at 10:53 AM. Reason: [CLOSED]
  2. #2
    Hi @rbtceo,

    A Store's getModifiedRecords method returns an array of modified records. A record is a complex object with cross references and it cannot be deserialized automatically. You should retrieve a record's data from each record. There is a Store's getChangedData method. It does a similar thing with all modified and new records.
  3. #3
    Thank you.

    The thread can be closed.

Similar Threads

  1. [CLOSED] Send Json object with get value with loaders
    By Tactem in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 07, 2013, 3:22 PM
  2. Replies: 4
    Last Post: Oct 27, 2012, 10:59 AM
  3. Replies: 1
    Last Post: Sep 13, 2011, 5:19 PM
  4. Can Store.DateSource send sub object to client?
    By firebank in forum 1.x Help
    Replies: 2
    Last Post: Apr 15, 2010, 11:48 AM
  5. Send complex object to AjaxMethod
    By glenh in forum 1.x Help
    Replies: 2
    Last Post: Aug 13, 2009, 10:01 AM

Tags for this Thread

Posting Permissions