3 Replies Latest reply on May 2, 2013 11:36 PM by Rahul Kumar

    Not able to execute the barcode functionality in Motrola mc75

      HI,

       

      I have written  the codition in .erb file

          <% if System.get_property('is_motorola_device') %>

               <a href="<%= url_for :action =>:scannerEnable %>" data-role="button" name="scan" value="Scan Barcode" data-inline="true">Scan Barcode</a>

       

      <% end %>

       

              But while running in the motorol MC75  if condition is  not satisfying but as per Motrola docs it should go to the if block.  Please give any suggestion.

       

      In .erb file I remove the if condition

       

      <a href="<%= url_for :action =>:scannerEnable %>" data-role="button" name="scan" value="Scan Barcode" data-inline="true">Scan Barcode</a>

       

      and in controller I have written the following code....

       

       

      def scannerEnable

           Alert.show_popup("Scanner Enable")

           Scanner.enable

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

      end

       

      def scannerEventListner

           Alert.show_popup("inside scannerEventListner")

            Alert.show_popup=(@params.inspect)

      end

        

      After running in the device nothing happens .Before pressing the yellow button for scanning which is present in Motrola MC75 it is coming undefined and didn't showing any alert popup present in ScannerEventListner method.

       

      Plese suggest is this coming due to some Rhoelement license issue ???????????