3 Replies Latest reply on Apr 1, 2014 3:49 AM by Kutir Mobility

    Problem with Signature Capture

    mobeid@asapsystems.com

      Hello, Before i upgrade my Rhode 3.5 to Rhode 4.0 and my RhoElements 2.2 to RhoElements 4.0 i have the Signature Capture work normally. i got a new license to run my Application, but the Signature Capture doesn't work. the Rho::SignatureCapture.take is not working. this is my Code:

      def index    
           @signatures = SignatureUtil.find(:all)    
           render  
      end 
      def new  
           imgFormat = System::get_property('platform') == 'WINDOWS' ?  "bmp" : "jpg"     
           Rho::SignatureCapture.take(url_for( :action => :signature_callback), { :imageFormat => imgFormat, :penColor => 0x0066FF, :penWidth=>5, :border => true, :bgColor => 0xffffff })  
      end 
      def delete    
           @signature = SignatureUtil.find(@params['id'])   
           SignatureUtil.delete_all   
           WebView.navigate( url_for :controller => :Transactions, :action => :AssetPhysInvty ) 
      end 
      def signature_callback   
            if @params['status'] == 'ok'     
            #create signature record in the DB     
            signature = SignatureUtil.new({'signature_uri'=>@params['signature_uri']})     
            signature.save     
            puts "new Signature object: " + signature.inspect   
           end   
           WebView.navigate( url_for :controller => :Transactions, :action => :AssetPhysInvty )     "" 
      end
      
      

      Any idea ? Sincerely