Please help : App exits after submitting a form!

M Mark Nongkhlaw 3 years 7 months ago
3 1 0

Surprisingly, the app exits after submitting a form instead of displaying the params. This is extracted from the system-api-samples app. Tested in RMS 5.1.1. Please help.

This is the form :

 
    Form test
 

 

   
       
         
       

       
          Login
         
       
       
       
          Password
         
       
       
       
          Value1
         
       
       
          Value2
         
       
       
       
          Enter number
         
       
       
       
   

 

And this is the controller code :

require 'rho'
require 'rho/rhocontroller'
require 'rho/rhoerror'
require 'helpers/browser_helper'

class JQueryMobileTestController Rho::RhoController
  @layout = 'JQueryMobileTest/layout'
  include BrowserHelper
  @@msg = ""

  def index
    render :back => '/app'
  end

  def get_msg
  @@msg
  end

  def do_submit
    @@msg = @params
    redirect :action => :index
  end

end

Please Register or Login to post a reply

1 Replies

M Mark Nongkhlaw

Looks like @params returns nothing!
Has the syntax changed from earlier versions?
If yes, how do you now access the values posted by a form?

CONTACT
Can’t find what you’re looking for?