Community Questions & Answers

Alloy not Saving

II'm creating an app using Alloy and can not save any data in SQL. There is no error message displayed, but when I close and open the emulator, compiling a new application (without uninstalling), no data is maintained, implying that the SQLite database is...

[WARN] : Called remove for [object TiUIView]

I am storing the top and left values, then trying to read and pass them to a (new or old) view when needed. I am getting [WARN] : Called remove for [object TiUIView] on [object TiUIWindow], but [object TiUIView] isn't a child or has already been...

Problem with database

Hi guys, I'm creating a database using Ti.Database. I'm trying to have an auto-increment column so that i can update values of the row or delete the row. When i try create the column, i encountered an error. Can anyone help me debug? And I wanted the...

Titanium Graph with SQLite Values..??

HI developers very Good Noon, I'm facing some issues with Titanium graph plugin.. And How to plot graph with sqlite database values as already saved in my app. Please let me know dev's i'm waiting for ur help now.. Thanks in advance... SuthanM.

alter table causes problem

i renamed a column called id to user_id in table user and I am using ~~~ var conn = Titanium.Database.install('/myDB.sqlite','myDB'); ~~~ when i try to insert a record in this table i get error ~~~ table user has no column named user_id ~~~

SQLITE

now i want to make an application on android and ios , so my question can i make it with sqlite and when any change happens to the database will affect on the other phones thnx

use pre created database

I have a sqlite database which consists of tables and data in it. How to use this in alloy?? i did `Titanium.Database.install('myDB','myDB');` and myDB.sqlite file is in assets folder

Get the last inserted record

I want to retrieve the last inserted record...now I am getting the first record ... and db.lastInsertRowId I cant seem to make return the singular record I want ... Any ideas ? ~~~ var SelectStroke = function(){ var db =...

Get variable data

I am trying to collect data from different modules and place the data when appropriate into my DB... you press the button and it sends this data fine to the module ... sort of ... if I comment out //SelectStroke(); it enters all the variable data...

Question regarding data.push?

Hi Everyone, I have a question regarding pushing data in titanium. With data.push is it possible to push more than one data type from a SQL statement? Thanks

SQLite error codes

I use this code to execute SQL staments ~~~ function execute(_db, _sql, _params) { try { _db.execute(_sql, _params) } catch(e) { alert(JSON.stringify(e)); } } ~~~ but when I execute a wrong SQL command as...

Create database in the resources folder...

Hi, I have to create few sql lite databases in my application. All db's must be stored in the resources not in default place. Problem is: How to save/open-read database in the resources folder? Do I have to create database by Ti.Database.open and then move...

Get last SQLite error message/code

When I execute a SQL stament that has a sintatx error as: ~~~ db.execute('insert into table(x,y,z) values (?,?,?)',[100,200]); ~~~ How I cant get the last error message or error code? Thanks :)

Sqlite

Where in the SDK can I find the database files I generate... here is the code I'm using to generate... I can't find the DB so I don't know if the db is generated or not generated... I'm getting no errors ... ~~~ var db =...

sqLite or XML

We are building a content managed app that downloads a lot of data as XML for the apps pages from a server... Would it lead to a better performance, to read the XML and store it in a database and then query the database for the relevant data, or just read...

error in insert record in SQLite in alloy

Hi Guys, I want to insert a record in SQLite db, but I am getting an error. ~~~ [ERROR] : Script Error = 'null' is not an object (evaluating 'rs.isValidRow') at sql.js (line 253). [ERROR] : Script Error = Module "alloy/models/Test" failed to...

Display Graph in Titanium iOS

In my app, i need to display the status of the feedback by a Graph(chart) view. Is webview is needed? I tried RGraph framework, which is showing errors for me, how to use this framework? Are they're anyother ways their to achieve this?Can anyone pls,...

Titanium iOS: Display gragh based on sqlite db datas

In Titanium, i need some guidance in plotting graph based on the sqlite db values. I tried Rgraph to plot graph, but while importing am getting errors in .css and .html files of Rgraph framework. What i need to do to display graph based on the datas from...

Titanium Alloy SQL

Hi, i am using Titanium with Alloy technology.. and i have a form that i want to be save in sql database (into the App) once submitted what is the easier way to do that? is there any examples?

Mirroring of remote SQLite database

Hi, in my project I generate a sqlite file from mySQL with PHP. I see, if I create a database inside my project then a sql file is living in: `/Users/name/Library/App..port/iPho..ulator/6.1/Applications/MYID/Library/Private Documents` How can I access...

Defining a custom sqlite function

Is there a way to define a custom sqlite function in Appcelerator? I am trying to do a distance calculation using latitude and longitude points in a sqlite database but the normal formula I would use relies on SQL Math Functions that sqlite does not have...

Alloy and remoteBackup

I have a pre-build sqlite db in my app using alloy models. I know Apple is going to reject my app if i can't set remoteBackup on it. How do I set the remoteBackup attribute on my DB when I never directly call it?

Showing 1-50 of 603 1 2 3 4 5 613