cancel
Showing results for 
Search instead for 
Did you mean: 

Disable message area in Web Dynpro

Former Member
0 Kudos

Hello All,

I was assinged to a new issue in web dynpro. I was created a view and created methods. When ever I tried to run this web dynpro component I found a small area is coming at the top of web page with text "No messages". I realized this is coming from message area. But I never created any message are in my view. COuld you please help me out how can I remove or disable that message area if no message is there. I am trying in multiple ways but I was not able to reach.Please help me put in this.

Thanks for your valuable help in advance.

Regards,

Kumar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lakshman,

Do you see any icon before the text displayed at the top left corner of the screen. In case there is any green icon, it means a success messag, in case it is yellow means a warning message and if red is reportException or raiseException.

Just follow through all the codes in all the views(View Controllers) and controllers(Component and Interface Controllers) and find for the expression

wdComponentAPI.getMessageManager()

OR

wdThis.wdGetAPI().getComponent().getMessageManager()

which gives the IWDMessageManager.

If you find any just comment that piece of code and then deploy the application.

If the message is comming from message area, it would have disappeared now.

And, one more thing- Check the layout of the Views for MessageArea UI element. If it is there, then you can understand why is it getting displayed on the screen there. Moreover, need to clarify that unless MessageArea UI element is dynamically created by code/inserted into the View Layout it is not possible to display messages from message area to be displayed at the top.

It would rather be displayed at the bottom left corner of the screen in this case.

Possibility of displaying message on the screen is also possible if the message is coming from any other development component. What I mean is if in case you component is using other development component (added in used DC) then, it could even be displayed from there. So, be careful as well.

Still if in case, you are not able to find any solution to it try putting logs, using

wdComponentAPI.getMessageManager().reportSuccess("1");

in your code to find out when is that message getting displayed.

You can try this piece of code as well to find if there were any messages coming from message area.

boolean b_mesageAreaIsEmpty = wdThis.wdGetAPI().getComponent().getMessageManager().isEmpty();

wdComponentAPI.getMessageManager().reportSuccess("Has Messages Within: " + b_mesageAreaIsEmpty);

That extra spacing could also be there because of some spacing/paddingin in the containers/groups/otherUI elements as well.

Probably, I have mentioned all the possible senarios for your issue.

All the best.

Regards,

Tushar Sinha

christiansche
Active Participant
0 Kudos

Hi,

sorry, you are right. If there's no MessageArea, the message is displayed at bottom left.

Best Regards,

Christian

Former Member
0 Kudos

Hello All,

My Problem was solved:)

Solution was in the Application there was a radio button option. In that radio button option defualt "Always Display Message Component" was selected. I remove that and I selected "Show Message Componenet on Demand" radio button. Problem solved.

Thanks every body......

Regards,

Kumar

Answers (2)

Answers (2)

christiansche
Active Participant
0 Kudos

Hi,

it may also be possible, that this message comes from a Model or Controller. because it is generated code, and will be newly generated if you change ist, it will be hard, to get rid of this message.

f you have no Message Area, it doesn't mean, that no Messages will be displayed. If a Message comes up and there is no MessageArea, it will be displayed at top of your page.

But you can add a MessageArea to your page, to het the massage shown where you want. I don't know, if its possible, not to show a massage. I think, the message gets displayed in every case.

You can create a new view, where you call all your controllers ans models by clicking on a button. this might be quickly created by using templates. then you can check each controller ans model to see, where this message comes from.

Best regards,

Christian

Former Member
0 Kudos

Hi friend,

I think there must be one code snippet in the code. try to find

wdComponentApi.getMessageManager.reportSuccess("Some String");

it may be report exception or report some thing find it and remove. It will solve your problem. Hope it will help.

Regards

Jeetendra.