6 Replies Latest reply on May 28, 2012 10:38 AM by Adel Sari

    Scanner decodeEvent don't fire

    Adel Sari

      Hi every body,

      Trying to test the Scanner fonctionnality on the ET1 with RhoElements V2, my DecodeEvent never fire, i try the InventoryManagement project but i get the same problem,

      just when i call Scanner.start it works fine, i don't want to use a soft start, the user must press the scan button.

      i have tested the HolloScan which works fine with RhoElements 1.0.3.11, but in vain the same result, DecodeEvent don't fire.

       

      my code is like this:

      def enableScanner

            Scanner.decodeEvent = url_for(:action => :scannerEventListener)

            Scanner.enable

      end

       

      def scannerEventListener

            $scanResult = @params['data']

           WebView.execute_js("setFieldValue('result', " + $scanResult + ");")

      end

       

      is their any thing i am missing ? Why the same HolloScan.html works fine on RE1.0.3.11 and not on RE2 ? is their any thing to do in the config file ?

      thanks.