cancel
Showing results for 
Search instead for 
Did you mean: 

message poolling

Former Member
0 Kudos

Hi

can u please expalin how to use message pooling to display an error with an example

Thanks

Raju

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

there is a blog in saptechnical.com

go to tutorials in home page, in webdynpro for java section u can find it

u can refer that.

Regards,

Satya.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi!

please refer the following links

http://www.vogella.de/articles/SAPWebDynpro/article.html

thanks

vishal

Former Member
0 Kudos

Hi

Follow this

Under message pool you create Message key u2013 validate

Message type u2013 error

Message text as u2013 Enter valid input

Create a method called validate with two parameters todate and fromdate of date type

In Button action u have created write the following code

this.validate("TODATE");

this.validate("FROMDATE");

wdComponentAPI.getMessageManager().raisePendingException();

Create a method called Validate

In Validate method u write the following code

IWDMessageManager ID = wdComponentAPI.getMessageManager();

//write code to get parameter values todate and fromdate

//write your validation condition like

Int i=todate.compareTo(fromdate)

if(i<0)

{

ID.reportContextAttributeMessage(wdContext.nodeMSGNODE().currentMSGNODEElement(),info,IMessageMSG.VALIDATE,new Object[] {fromdate},true);

}

else

WdComponentAPI.getMessageManager().reportSuccess(u201Cvalid inputu201D);

Regards

Raghu

Former Member
0 Kudos