on 04-04-2007 9:29 PM
I am using message area to display all the mesages/errors that gets generated in a single webdyn pro java page.
i have set the property of message area to display 1 message only, and now if more than 1 error is generating then , it shows footer also.
but i want to have a button there "Show all messages" and on click of it , i want to display all the generated messages in a pop up window.
can anybody suggest how to achieve it ?
thanks in advance
kaushik
Hello SID
yes i feel your suggestion makes sense, right now i am struck with another code, but will definitely try this approach and will reward the point to you soon
thanks & regards
kaushik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello Ramganesan
thanks for the suggestion but you didnot get my question. please see my earlier post for the detail of the question
my issue is to display all the earlier error/sucess messages in a pop up window and not creating the pop up window.
thanks
kaushik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kaushik,
For this I guess you can opt this approch:
create a value node say (ErrorMessages) under which create a value attribute say (Message) in you component controller and map it to all the views. Then whenever you are raising any exception or any message for the user just add the same to this value attribute also.
Now when the user clicks on the SHOW ALL button open a pop-up window and display all the messages stored.
I hope this idea will suffice your requirement.
<b>Do reward points if it helps.</b>
Regards
Sid
Hi Kaushik,
Use the following code to cretae model window:
IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Popup");
IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
wdContext.currentContextElement().setWindowInstance(window);
window.setWindowPosition(WDWindowPos.CENTER);
window.open();
Try this also,
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks all for the reply,
SID
to elaborate , the scenario is :
i am working on the application i designed and from time to time depending upon the user actions , error or success messages are generated . and i want to keep track of all these messages, so that at any point to time the user can click on the button and the user can see all the messages, that were generated earlier ( from the time the user has logged in only ), in a pop up window.
i hope my question is clear now .
thanks
kaushik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Koushick,
Try to set the context attributes for height and width property of the message
area.
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kaushik,
Use the same instance of the message manager and set the property MaxVisibleMessages at runtime to -1 to see all the mesages.
To learn how to use pop up refer to this document
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Dialog Box Tutorial</a>
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.