Skip to Content

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

Append Message Area

Hi,

How to append Message Area?

Thanks,

RPN

Former Member
Former Member replied

Hi Jude,

As you have hardcoded the values thats why you are not getting the previous message.

below is the code written by you

IPrivateIDocClientView.IContextElement element = wdContext.currentContextElement();
IWDMessageManager msgMNG  = wdComponentAPI.getMessageManager();
msgMNG.reportSuccess("Success");
msgMNG.raiseException("Failure");

below are my suggestions.

IPrivateIDocClientView.IContextElement element = wdContext.currentContextElement();
IWDMessageManager msgMNG  = wdComponentAPI.getMessageManager();
String success = "Success";
String failure = "Failure";
//now you need to delclare one global variable between 
//@@begin others
String result = success +failure;
  //@@end
// I hope both these statements are in different methods.
msgMNG.reportSuccess("result ");
msgMNG.raiseException("result ");

Hope this will help.

Regards

Narendra Singh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question