on 10-16-2007 12:28 PM
Hi All,
I have a issue,i am working in ejb concept in webdynpro.
here problem is i created two views
1.joint and
2.progress views.
i want to add one more error message in second view.
if u click on save button in progress view, an error msg have to display in joint view.can any body send me code for this.
Thanks
prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi prasad,
I agree with Mithu, for standard practice you should use message pool. You want add one more error message. Example: you execute your ejb and you want add one more message if this ejb throw an exception.
try {
//lookup and execute the EJB
} catch (Exception e) {
//My customized message
wdComponentAPI.getMessageManager().reportException("My message", true);
//EJB message
wdComponentAPI.getMessageManager().reportException("" + e.getMessage(), true);
}
Regards,
Edson Thomaz
Hi,
wdComponentAPI.getMessageManager().reportException(MSG, true);
This code show error message in view Web Dynpro.
Regards,
Edson Thomaz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Create a context value boolean and bind it to the both view.
set the value for the attibute true in the save button action.
In the fire plug in joint view check the save button click and give the error message as
wdComponentAPI.getMessageManager().reportException("Error Message",false);
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Create the attribute in ComponentConroler and bind it to the views.
see the following link for the details
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">web Dynpro Sample Applications and Tutorials</a>
Kind Regards
Mukesh
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.