<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694799#M187396</link>
    <description>&lt;P&gt;Hey, I've just followed this tutorial, but the barcode button does not appear at all.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://i.imgur.com/bLnoGOU.png"&gt;Screenshot, iPhone&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;You can look at the code @ &lt;A href="https://gist.github.com/carstenhag/569441eab84da4819a31430549b164a0"&gt;this Gist&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;I've added 2 sample strings so the table shows something. Filtering works. No icon on iPad either.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 19:18:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-07-18T19:18:15Z</dc:date>
    <item>
      <title>Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear</title>
      <link>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaq-p/694797</link>
      <description>&lt;P&gt;Hey, basically I just want to either:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;1) Start a predefined view that scans a QR code, and gives me a String back or&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;2) Start my own View/ViewController which embeds the SDK's Scanner.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Both of these are outside of a searchbar etc.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I tried to follow the instructions &lt;A href="https://help.sap.com/doc/978e4f6c968c4cc5a30f9d324aa4b1d7/Latest/en-US/Documents/Frameworks/SAPFiori/Classes/FUIBarcodeScanViewController.html"&gt;at the docs&lt;/A&gt; but they do not work at all.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I'll start listing the things which I do not understand:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;"Developer may use segue in their storyboard to access this FUIBarcodeScanViewController in FUIBarcodeScanViewController.storyboard." What storyboard file? It was not created within my project.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I don't know how to use the variant with prepare.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Next on, the version with customScanFromCode. &lt;A href="https://gist.github.com/carstenhag/971099958cde6091346c7a36d0f857e4"&gt;Gist to my code&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;FUIBarcodeScanViewController.createInstanceFromStoryboard() always returns an instance with almost all values set to nil. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;My app crashes by the time "scanViewController.barcodeScanner.scanMode = .qr" got executed, because barcodeScanner gets force-unwrapped, and it was nil.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am not able to launch a Scanner in any way. There is also no example or guide which I could find.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 14:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaq-p/694797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-18T14:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear</title>
      <link>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694798#M187395</link>
      <description>&lt;P&gt;Hi Carsten,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;There is a step-by-step tutorial which covers the basic implementation of a barcode / QR code scanner: &lt;A href="https://www.sap.com/developer/tutorials/fiori-ios-scpms-barcode.html"&gt;Implement Barcode Scanner&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;If you plan on using the scanner using the List Report Floorplan design pattern, the scanner implementation is covered in tutorial &lt;A href="https://www.sap.com/developer/tutorials/fiori-ios-scpms-floorplan.html"&gt;List Report Floorplan&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Hope this helps!&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Robin van het Hof&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694798#M187395</guid>
      <dc:creator>Qualiture</dc:creator>
      <dc:date>2018-07-18T18:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear</title>
      <link>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694799#M187396</link>
      <description>&lt;P&gt;Hey, I've just followed this tutorial, but the barcode button does not appear at all.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://i.imgur.com/bLnoGOU.png"&gt;Screenshot, iPhone&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;You can look at the code @ &lt;A href="https://gist.github.com/carstenhag/569441eab84da4819a31430549b164a0"&gt;this Gist&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;I've added 2 sample strings so the table shows something. Filtering works. No icon on iPad either.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694799#M187396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-18T19:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear</title>
      <link>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694800#M187397</link>
      <description>&lt;P&gt;Hi Carsten,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Have you tried it running on a physical device? The simulator does not work for me, obviously, since it doesn't have a camera. The tutorial code does work on a physical iPhone&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694800#M187397</guid>
      <dc:creator>Qualiture</dc:creator>
      <dc:date>2018-07-18T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear</title>
      <link>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694801#M187398</link>
      <description>&lt;P&gt;Sadly I had missed your comment until now. Figured this out today.&lt;/P&gt;
  &lt;P&gt;I was surprised the SDK doesn't launch a dialog/popup, or console warning that Simulator devices aren't supported. The FUIBarcodeScanViewController docs don't mention it either, only in the tutorial it's noted.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;If anyone needs some more pointers on how to use FUIBarcodeScanViewController, I've uploaded a gist which shows how it works, and I've added some checks so it doesn't crash on Simulator devices.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://gist.github.com/carstenhag/f21300611bc1ffecfa386e698b7429f2" target="test_blank"&gt;https://gist.github.com/carstenhag/f21300611bc1ffecfa386e698b7429f2&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks Robin! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 08:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694801#M187398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-19T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation needs an example for scanning Barcodes, FUIBarcodeScanViewController unclear</title>
      <link>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694802#M187399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I came accross this as well, and what the neither the tutorial nor the gist cover is how to invoke the barcodescanner when touching the barcode symbol. From the API it says that method searchBarSearchButtonClicked will be invoked, but I've implemented that method, and nothing happens when touching the barcode icon.&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/documentation-needs-an-example-for-scanning-barcodes/qaa-p/694802#M187399</guid>
      <dc:creator>perage</dc:creator>
      <dc:date>2020-04-10T21:10:37Z</dc:date>
    </item>
  </channel>
</rss>

