Search code examples
rubyrhomobilerhodes

Rhomobile Migration from Rho3.1 to Rho 4.0 Alert Msg. Error


I am trying to migrate my rho application from 3.1 to 4.0. In 3.1 i have defined alert using Alert.show_popup :title => "Please Wait", :message => "Fetching Data..." But as specified in documentation now i have changed it to the

dataPopProps = Hash.new
dataPopProps['message'] = "Fetching Data...";
dataPopProps['title'] = "Please Wait";
Rho::Notification.showPopup(dataPopProps)

But i am still getting the same error.Error Shown on mobile Error: Button list has been incorrectly defined. DIalog will not Launch

Any help will be great.


Solution

  • Try like this,

     dataPopProps = Hash.new    
     dataPopProps['message'] = "Fetching Data...";
     dataPopProps['title'] = "Please Wait";    
     dataPopProps['buttons'] = ["Ok"]
     Rho::Notification.showPopup(dataPopProps)