realmadrid2121 .
Posts: 0
Joined: Mon Sep 22, 2014 1:08 am

Retrieving information from an array .

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Retrieving information from an array .

Hello,

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

Return to “Issues”