Hello All,
I have a grid of data, with an add button. When I click the button, the user fills in a form, which creates a new record add adds it to the grids data source, like so:
This causes the data source to post a request to the server. The server then adds the record using the data that was sent.
All this is going great.
My problem is that the data is not added into the table once the response is received back from the server (if you refresh the whole table it appears).
The data that loads the grid initially is something like this (its xpath is set to /base_group/item)
And the code i am sending back when an item is added looks something like this:
The response comes back, the contacting server dialog closes, but the table does not update with the new record. I cant see what im doing wrong, or how to debug it.
Any help would be much appreciated!
I have a grid of data, with an add button. When I click the button, the user fills in a form, which creates a new record add adds it to the grids data source, like so:
Code:
Record record = new Record(); record.setAttribute("...", ...); dataSource.addData(record);
All this is going great.
My problem is that the data is not added into the table once the response is received back from the server (if you refresh the whole table it appears).
The data that loads the grid initially is something like this (its xpath is set to /base_group/item)
Code:
isc.Comm._scriptIncludeReply_13 ({"base_group": [ { "id": "5", "name": "Base Group", "item": [{ "id": "1895", "name": "An item", "description": "A description" }, ...<more items here>....] }]})
Code:
isc.Comm._scriptIncludeReply_15 ({ "base_group" : [ { "id": "5", "name": "Base Group", "item": [{ "id": "9111", "name" : "New Item", "description": "New Item Description." }] } ]})
Any help would be much appreciated!
Comment