cancel
Showing results for 
Search instead for 
Did you mean: 

message area help

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

sid_sunny
Contributor
0 Kudos

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

former_member189631
Active Contributor
0 Kudos

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,

https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/services/session/api/IWDWindow...

Regards,

Ramganesan K.

Former Member
0 Kudos

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

former_member189631
Active Contributor
0 Kudos

Koushick,

Try to set the context attributes for height and width property of the message

area.

Regards,

Ramganesan K.

sid_sunny
Contributor
0 Kudos

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