This question is locked. New answers and comments are not allowed.
[UPDATE] Sorry Please Ignore - looks like I have a timing issue.
Hello,
I am trying to return the most recently added record to a table but I am running into an issue.
The first time I run the query I get 0 records (Count 1), the second time I run the query I get the record I am looking for:
var query = new Everlive.Query();
query.where().eq('tank',gTankID);
query.orderDesc('ActionDate');
query.skip(1).take(1);
var data = Everlive.$.data('Action');
Hello,
I am trying to return the most recently added record to a table but I am running into an issue.
The first time I run the query I get 0 records (Count 1), the second time I run the query I get the record I am looking for:
var query = new Everlive.Query();
query.where().eq('tank',gTankID);
query.orderDesc('ActionDate');
query.skip(1).take(1);
var data = Everlive.$.data('Action');