Quantcast
Viewing all articles
Browse latest Browse all 8068

Run time error: cannot call method "isValidRow" of null

Hi all, I create titanium alloy project, and I've a problem on the model file, when I write exports.definition = { config: { columns: { "id": "integer PRIMARY KEY AUTOINCREMENT", "name": "string" }, adapter: { type: "sql", collection_name: "users", idAttribute: "id" } } } It works fine without error. But when I write the same code but with the db name and db file exports.definition = { config: { adapter: { type: "sql", collection_name: "users", idAttribute: "id", db_name: "sports", db_file: "sports.sqlite" } } } a run time error fire when I run the project

Location: alloy/sync/sql.js Message: Uncaught TypeError: cannot call method "isValidRow" of null Source: while (rs.isValidRow()) {

Application type: mobile Platform: Android 4.2 Host OS: Ubuntu 12.04 Titanium Studio, build: 3.0.2.201302191606 (c) Copyright 2012-2013 by Appcelerator, Inc. All rights reserved.

Thx in advance.


Viewing all articles
Browse latest Browse all 8068

Trending Articles