View Full Version : [CLOSED] send object[] using DirectMethod

Jun 11, 2014, 5:28 AM
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.

Jun 11, 2014, 1:33 PM
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.

Jun 12, 2014, 6:05 AM
Thank you.

The thread can be closed.