Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'<fieldCount>' is not a function (evaluating 'rows.fieldCount()'... #46

Open
Pita95 opened this issue Oct 16, 2014 · 2 comments
Open

'<fieldCount>' is not a function (evaluating 'rows.fieldCount()'... #46

Pita95 opened this issue Oct 16, 2014 · 2 comments

Comments

@Pita95
Copy link

Pita95 commented Oct 16, 2014

"Prior to Release 3.3.0 of the Titanium SDK, note that fieldCount is exposed as a method on iOS, but as a property on Android. Blackberry supported it both as a property and a method. Starting from Release 3.3.0 of the Titanium SDK, fieldCount is supported only as a read only property."
(Excerpt from http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Database.ResultSet)

Therefore using 3.3.0 of Titanium SDK or higher, when trying to perform a select on iOS you will get the error: '' is not a function (evaluating 'rows.fieldCount()'...

This is due to line 586 in joli.js
fieldCount = rows.fieldCount();

Since this is now a property in iOS, the surrounding logic can be condensed to something like :

var fieldCount = rows.fieldCount;

Hope this helps...
Keep up the good work! I love joli.js!

@trs-mark
Copy link

Thanks.

@antongorodezkiy
Copy link

+1, faced the same problem and came here to post an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants