lundi 31 mars 2014

How to retrieve the right Index

Hi



on saving a model instance to my backend, I want to read the proper Index.


Code:



var s1 = record[0].save();

console.log(s1);

console.log(s1.data);

console.log(s1.data.Index);



But what I get is Zero, although in the logs before I see the correct Index value

(pls see pics. which are snapshots from chrome debugger F12))



log(s1):

Attachment 48492

log(s1.data):

Attachment 48493

log(s1.data.Index) = 0 !! :-/



Any hints?

Thx.


Attached Images






Aucun commentaire:

Enregistrer un commentaire