Tuesday, 19 March 2013

Show message after redirection

Greetings!

To do: Let's alert user a message after redirection to any view.


Following piece of code will show a message at the top of the view you have redirected user to.


SugarApplication::appendErrorMessage('You have been redirected here because ....');



If you dont know how to redirect user to a certain view,


SugarApplication::redirect('index.php?module=<MODULE_NAME>&action=<ACTION>&record=<RECORD_ID>');




Hope it helps.

Feel free to leave your comments.

2 comments:

  1. Thanks for the insight into some great...but simple SugarCRM changes. Keep it up.

    ReplyDelete
  2. Thank you for appreciation! Means a lot.

    ReplyDelete

Urdhva Tech Pvt. Ltd. Powered by Blogger.

Urdhva Tech

My Photo
SugarCRM Consultants Contact us at contact@urdhva-tech.com Skype : urdhvatech

Search This Blog

Loading...

Stay connected Socially

     

Total Pageviews

Popular Posts