on 12-24-2007 5:33 AM
Hi,
1. I have created one webDynpro application in which in default view I am using a tabStrip which contains 4 tabs.
2. 4 different view are associated with these 4tabs.
3. I am using messageArea UIElement in each view.
4. But if I try to display any message using wdComponentApi.getMessageManager().reportSuccess(), it displays the same message in each view.
5. So if I navigate through the tabs, it shows me same message in each & every view.
6. I don't want to display the same message in another views.
How to resolve this problem?
Thanks in Advance
Hi,
You can make the visibility property of the messageArea UI to NONE in the three views while navigating through the tabs. Make it visible only for the active tab.
This will solve your problem.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is your problem solved? If not then feel free for further queries.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nilesh,
Put ur Message Area UI to the top of the Tabstrip UI in the Outline Pane (where u design ur views), your problem will be solved.
Regards / Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nilesh
If you are maintaining all the messages in message pool, then in following manner you can achieve the target.
IWDMessageManager msgManager = wdComponentAPI.getMessageManager();
if( msgManager.contains(IMessageAComp.Key)){
msgManager.removeMessage(IMessageAComp.Key);
}
And if you are not storing the messages in message pool then you have to hide the message Area in respective views.
Feel free to contact for queries.
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To display an error message:
wdComponentAPI.getMessageManager().reportException("Your Error Message", false);
To display an warning message:
wdComponentAPI.getMessageManager().reportWarning("Your warning Message");
To display an success message:
wdComponentAPI.getMessageManager().reportSuccess("Your success Message");
This works in an iview other than do modify view.
if you are using another Java file, you need to pass
com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI
from your iview to use this messages in your application in that file.
Thanks & Regards,
Mohak
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.