Application type: mobile SDK: [INFO] Titanium SDK version: 2.1.2 (08/24/12 14:46 ed7f777) Platform & version: android 2.3 Device: Android Device Host Operating System: OSX 10.7.4 Titanium Studio, build: 220.127.116.11208301612
Hello guys... I have a query regarding "ti.barcode" module in titanium, actually i'm successfully scanning 'coupon' in my app, where 'coupon' code is being saved. Now i want to know if any user scans an "item" at a store in a market, is it possible to know whether 'coupon' for that "item" already exists or not..?? Thanks in advance... :)
Hello Anuj, If your querying your scan against a database, you can simply do something like
var items = db.execute('SELECT * FROM tablename WHERE id='+idOfItem); if(items.rowCount ==1) return true;
Think you can help? Login to answer this question!