4 Replies Latest reply on Dec 4, 2014 6:21 AM by philmodjunk

    Trouble reading QR Codes

    johnnykrz

      Title

      Trouble reading QR Codes

      Post

      I am having trouble reading QR codes. I have tried reading them with online readers and I know they are good. Oddly, it was working fine at one point and I have not made any changes to that script or fields which is driving me even more nuts. It should be very simple.

      In FileMaker, if I use the GetContainerAttribute(table::code; "barcodeText") I get a question mark. If I use GetasText() in FM Pro, I get the filename. In FM Go, it scans the code (so it is recognizing that it is one), but does not get the data from it (returns blank). I've made sure that I have 'QR Code' selected in the Insert From Device script step and even tried selecting all codes.

        • 1. Re: Trouble reading QR Codes
          philmodjunk

          Try using Insert From Device to insert the code into a Text field instead of a container field. Then the value of the text field, with no additional processing, should be the scanned text from the code.

          • 2. Re: Trouble reading QR Codes
            johnnykrz

            That's how I was doing it. I used 'Insert From Device' into a text field. The container is where the barcode prints from, so I was trying 'getContainerAttribute' and 'GetasText' to test it. I still haven't got this working. I've even tried creating a new file with nothing but a container and a text field. It should be that simple. Either I'm one of the only people reading QR codes or I am missing something really obvious.

            • 3. Re: Trouble reading QR Codes
              johnnykrz

              For anyone who runs into this problem, I finally solved it.

              The field must be present on the current layout when using the 'Insert from Device' script step, unlike 'Set Field' which works on any modifiable field wether it is present or not. I don't want to see the field in the layout when scanning, so I just made it super tiny and hid it under a button.

              I'm not sure why the getcontainerattribute doesn't work though. I think there might still be a few missing features and/or bugs, but it works beautifully as long as you insert into a visible text field.

              • 4. Re: Trouble reading QR Codes
                philmodjunk

                GetContainerAttribute will only be able to return bar code text if you used InsertFromDevice to insert the bar code image into that field. The image generated by your plug in and inserted into a container field won't contain the needed meta data that this function is attempting to extract for you.

                That's why I suggested the text field as your original post led me to believe that you were using Insert From Device on a container field.