Retrieving information from an array .

This forum contains topics that were moved from Get Satisfaction
realmadrid2121 .
Posts: 0
Joined: Mon Sep 22, 2014 1:08 am

Retrieving information from an array .

Post 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

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

Retrieving information from an array .

Post 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

Post Reply