Barcode Scanner Question

  • Barcode Scanner Question

    Posted by DSC Communities on May 9, 2020 at 3:26 pm
    • Aubrey McKillop

      Member

      May 9, 2020 at 3:26 PM

      Hello,

      I have an app that has a list of items being pulled from a SQL Table.Ā  I added a new screen with the scanner button and I am looking to see if it is possible to scan the UPC (ItemNumber) and directly go to the edit screen based on the item number scanned.

      I have been able to navigate to the screen without issue on the scan but it does not load the proper item.

      Thank you for any help.

      Aubrey

      ——————————
      Aubrey McKillop
      Moncton NB
      ——————————

    • Warren Belz

      Member

      May 11, 2020 at 1:34 AM

      HI Aubrey,
      What code are you using on the OnScan of the barcode scanner?
      Assuming ItemNumber is a unique identifier in your list and your scanner was named BarcodeScanner1, you would do something like this OnScan.

      Set(vItem,BarcodeScanner1.Value)?;
      Navigate(YourEditScreenName)

      Your Item on your edit form would be

      Lookup(
         YourSQLTableName,
         ItemNumber=vItem
      )

      If you also navigate to this screen from a gallery – on the gallery OnSelect

      Set(vItem,ThisItem.ItemNumber);
      Navigate(YourEditScreenName)

      ——————————
      Warren Belz
      Rockhampton Qld Australia
      +61 409 315 509
      ——————————
      ——————————————-

    • Aubrey McKillop

      Member

      May 11, 2020 at 7:04 AM

      Hi Warren,Ā 

      Thank you so much!Ā  Between your response and one provide by Shane young on his YouTube channel I have been able to make this work.

      I was so close …I was trying to do my lookup in the wrong spot.

      I now have the app doing what I need.

      Thank you!

      Aubrey

      ——————————
      Aubrey McKillop
      Moncton NB
      Canada
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 4 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Barcode Scanner Question’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!