Read columns from rows returned in execSql callback

65 views
Skip to first unread message

josmit...@gmail.com

unread,
Jul 2, 2016, 1:11:05 AM7/2/16
to tedious
Hi, I am executing queries with 'rowCollectionOnRequestCompletion' set to true. This returns the rows in callback of execSql.
Is there any way that I can read values by using column names from this array?

Currently I am using following snippet,

if (!error && rowCount > 0)
{
    var row = rows[0];
    var columnId = row[0];
    key.Id = columnId['value'];
}
Reply all
Reply to author
Forward
0 new messages