on 03-03-2006 6:52 AM
Hi,
Please let me know how to display the messages that are given by the R3 Business Objects(BOs) in the WebDynpro view.
Example : Suppose I save a record using the GCP APIs and need to display the message "Save successful/save aborted due to...." given by BO in the view.
Awaiting your kind response.
Regards,
Mahesh
Hi,
GCP APIs should provide this functionality.
Ex: If save record fails then API will raise some exception.You can catch those exceptions and you can print your own messages .
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I was able to get the BO messages using IMessageList and IMessage GCP API's.
sample code :
IMessageList msgList;
msgList = sf.getAllMessages();
//sf is of type IServiceFacade.
IMessage msg;
for(int i=0; i<msgList.size();i++){
msg = (IMessage)msgList.getMessage(i);
wdComponentAPI.getMessageManager().reportSuccess("BO msgs = "+msg);
}
Regards,
Mahesh
Hi Anil,
The method you suggested displays the string that I enter in my code (man.reportsuccess"...").
But what I want is to just display the text that I get from the backend and not the string I write in code.
The question is...how to access this backend BO messages??
Regards,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use MessageManager to display the messages.
Ex:
IWDMessageManager man=wdThis.wdGet<<Controller>>().wdGetAPI().getMessageManager();
man.reportSucess("<<Message>>");
man.reportWarning("<<Message>>");
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.