Page 1 of 1

Retrieving information from an array .

Posted: Fri Oct 03, 2014 4:11 am
by realmadrid2121 .

In your tutorial .."Building a warehouse-manager app with a barcode scanner and database".. I am having trouble retrieving barcode information from the db. The difference is that my barcode information resides in an array . Column is named "bar". In your tutorial you use a where parameter with the following JS ... return '{"code":"' + value + '"}'; . What JS can you use when the barcode resides in an array ? Thank you


Retrieving information from an array .

Posted: Fri Oct 03, 2014 9:26 am
by Kateryna Grynko

Hello,

If you need to convert 'value' to an array please replace:prereturn '{"code":"' + value + '"}';/preWith:prereturn '{"code":"' + JSON.stringify(value) + '"}';/pre