Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49247

Bar code scanner with more than one field

$
0
0

@gacalves wrote:

I'm trying to use the barcode scanner plugin.
I have more than one field that receives the scanned value, and the amount of these fields can vary (1, 2, 3 fields ...), depending on the configuration the user selects.

My problem is knowing which field called the scanner to fill the scanned value back, because the scan() method is asynchronous.

I tried to pass to the scanner plugin a parameter that indicates the field being scanned at the moment, however, I could not find that option. I also tried to run the scan() method synchronously (as in this post), but the scanner does not open.
Does anyone have another solution?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>