aorlic
4 Apr 2012, 6:00 AM
Hello all!
I use a Store to load data. I understand that proxy.reader's "successProperty" is set AFTER the response from server, representing APP-SPECIFIC response state (an not some lower-level problem, like bad-formatted Json or DB error).
This is a fragment of the Json response:
{
"status": {
"success": false,
"code": 8,
...
and this is a proxy code snippet:
proxy: {
type: 'ajax',
reader: {
type: 'json',
root: 'data',
successProperty: 'success'
...
I simply cannot find WHERE should I check the successProperty field after the load()'s callback has been called?
All the "candidates" are TRUE, although it comes as FALSE from the server...
Thank you for any help!
Aleksandar.
I use a Store to load data. I understand that proxy.reader's "successProperty" is set AFTER the response from server, representing APP-SPECIFIC response state (an not some lower-level problem, like bad-formatted Json or DB error).
This is a fragment of the Json response:
{
"status": {
"success": false,
"code": 8,
...
and this is a proxy code snippet:
proxy: {
type: 'ajax',
reader: {
type: 'json',
root: 'data',
successProperty: 'success'
...
I simply cannot find WHERE should I check the successProperty field after the load()'s callback has been called?
All the "candidates" are TRUE, although it comes as FALSE from the server...
Thank you for any help!
Aleksandar.