cancel
Showing results for 
Search instead for 
Did you mean: 

rise error message in init method

Former Member
0 Kudos

Hi

I want to display an error message on browser screen through "report_t100_message" method, in the init method of my default view.

it works well in any other method of default view or in any other view.

Kindly get back to me on the same.

Regards

Vishal Kapoor

Accepted Solutions (0)

Answers (2)

Answers (2)

rainer_liebisch
Contributor
0 Kudos

Hello Vishal,

so far the message area was designed for messages that arise after user action in a session, not for messages that have to be displayed at startup, but with SP13 this is implemented as well. Unfortunately these changes can't be applied with a note, so please wait for SP13.

Regards,

Rainer

Former Member
0 Kudos

Hi Rainer.

I am on SP12 but i can display messages that have been reported in wddoinit of a view very well.

Cheers,

Sascha

rainer_liebisch
Contributor
0 Kudos

Hi Sascha,

it depends on which place in the phase space your view gets precessed. I implemented the code definitely in SP13, so that you can also rise messages in a startup plug. Below SP13 this leads to a null pointer exception, because the reference to the message area class is missing at this point in time.

Regards,

Rainer

Former Member
0 Kudos

ah ok,

i raise the message in a wddoinit method of a view not in an start up plug handler.

Cheers,

Sascha.

Former Member
0 Kudos

Hi Rainer

Thanks for your valuable suggestion, I will wait for sp13 to check this out as I dont have any other way out to do it.

Regards

Vishal kapoor

Former Member
0 Kudos

Hi Vishal.

What exactly happens? Pls paste the code.

Cheers,

Sascha