Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

wdComponent.getMessageManager().reportSuccess(....)

Hi All

I have a question:

Actually in my coding, wherever i need to display any message in my view, i need to mention: wdComponentAPI.getMessageManager().reportSuccess(....)

So just to avoid writing this again and again, i was just thinking that if i create a public method as i mentioned below inside my view class so that in place of write full command i can simply replace it with Display_Message(my_message) to display my message.

public class Display_Message ( String str)

{

wdComponentAPI.getMessageManager().reportSuccess(str);

}

Just wanted to find out is this possible? If not, can u suggest me any other alternative way...

Thanks In Advance....

Edited by: Harpal Singh on Apr 7, 2009 11:32 PM

Edited by: Harpal Singh on Apr 7, 2009 11:32 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question