cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in displaying messages in proper Message area

Former Member
0 Kudos

Hi.

I have a UI elemnt Message area at the top of my view .I get messages from backend.But the problem is my message area doesnot show messages while messages are showed at the bottom of the view everytime .These are the properties of the UI element

enabled Subs_Profile.messageArea

maxVisibleMessages 0

Could any one please help me to get the messages in the message area and not at the bottom by default

Thankxs& regards

varsha

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Varsha,

Problem seems to be that the message area on your view is NOT linked to the Message Area object that you are using to report the error.

what you need to do is in method wddomodify of the VIEW that has message area UI element add few lines of codes

assume the name of the message area on the view is MA_MSG

method WDDOMODIFYVIEW .

 DATA: 
  lr_msg type ref to   CL_WDR_MESSAGE_AREA

  lr_msg ?= view->GET_ELEMENT('MA_MSG').
  
* use the method of you message area object to report error

 endmethod.

Former Member
0 Kudos

Hi ,

I tried changing the maxVisibleMessages to 5 also my enabled property is set true but still the messages are not coming in the message area they are coming on bottom of the view .can anyone please help.

Former Member
0 Kudos

Thats weird xD

The only thing i can think of is: maybe that messageArea is inside a container/group whose visibility is false haha.

Regards

Julio

Former Member
0 Kudos

Hi Varsha,

Problem seems to be that the message area on your view is NOT linked to the Message Area object that you are using to report the error.

what you need to do is in method wddomodify of the VIEW that has message area UI element add few lines of codes

assume the name of the message area on the view is MA_MSG

method WDDOMODIFYVIEW .

 DATA: 
  lr_msg type ref to   CL_WDR_MESSAGE_AREA

  lr_msg ?= view->GET_ELEMENT('MA_MSG').
  
* use the method of you message area object to report error

 endmethod.

Former Member
0 Kudos

Hi,

Well then it should work. Just one more check:

enabled Subs_Profile.messageArea, here enabled property is maaped to an attribute messageArea. Just check if it is true or not.

thanks & regards,

Manoj

Former Member
0 Kudos

Hi,

What is the visible property of your messageArea UI?

thanks & regards,

Manoj

Former Member
0 Kudos

Hi manoj ,

The visibility property is visible

Former Member
0 Kudos

Hi 😃

1.- Set that MAXvisiblemessages to 4 or 5.

2.- How are you "reporting" those messages to the messageManager?

Regards!

Former Member
0 Kudos

hi Julio ,

I am directly reporting the messages through object of message manager .