NetTalk Central

Author Topic: Bar code scanner - multiple instances on a page  (Read 3319 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Bar code scanner - multiple instances on a page
« on: October 08, 2019, 08:44:27 PM »
Welcome back, Bruce.  Hope everything went well at CDIC

I have not been able to add more than one instance of the scanner control on the same page.  In this case, I want use the scanner on a parent form and then again on a pop up child form.  If I make the child a separate page it works fine, but that really isn't an option for me.  Would this be a useful question for the user group?

Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
Re: Bar code scanner - multiple instances on a page
« Reply #1 on: October 09, 2019, 02:43:05 AM »
Hi Casey,

Make an example app for me of what you have in mind, and I can take a look.
Probably not helpful for the user group unless I have an example.

Cheers
Bruce

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Bar code scanner - multiple instances on a page
« Reply #2 on: October 09, 2019, 01:13:01 PM »
I did my initial work with the scanner using NT 11.18, including finding the multiple instances on a page issue. The web cam example (79) worked fine at the time. After updating to 11.22, the bar code control does not appear on the bar code form page of example 79.  The web cam on the MailBox form page works OK, though.  The barcode template fields have been changed since NT11.18 so, I presume, was the code generation.  Is the barcode in example 79 still working for you?

osquiabro

  • Hero Member
  • *****
  • Posts: 667
    • View Profile
    • Email
Re: Bar code scanner - multiple instances on a page
« Reply #3 on: October 09, 2019, 06:47:05 PM »
i have the same problem with NT 11.22  the barcode example don't work

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
Re: Bar code scanner - multiple instances on a page
« Reply #4 on: October 29, 2019, 03:25:52 AM »
example fixed in 10.24

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Bar code scanner - multiple instances on a page
« Reply #5 on: October 29, 2019, 01:42:54 PM »
Great, thanks.

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Bar code scanner - multiple instances on a page
« Reply #6 on: November 07, 2019, 02:19:09 PM »
Hi Bruce

The altered web 79 example has an additional menu with 4 items, that illustrate the kind of issues there are with using more than one scanner on a page

Two scanners on same page
There are two results fields and two scanner controls but only the first field receives results. Not surprising; the app has the same camera feed for both scanner controls

Popup. No Parent
Calling the Barcode page as a popup direct from the menu. Works fine.

Popup. Parent without scanner
There is a parent form with just a button that calls the Barcode page as a popup. Works fine

Pop up. Parent with scanner
The parent form has separate scanner and results field as well as the button to call the Barcode page as a pop-up.  Scanner in popup doesn't appear. This is the problem I am really trying to fix.

Thanks.