cancel
Showing results for 
Search instead for 
Did you mean: 

Message Manager

vipin_v2
Participant
0 Kudos

Hi,

I have few q' s which i felt will get answered over here.

a) Is it possible to count the number of messages that gets collected by the message manager at the run time.

b) Is it possible to stop the further collection of messages using message manager post a certain limit or count.

c) Can we have a scrollbar to the message area.

Any (pointers/ answers) will be highly appreciated.

Thanks in Advance,

Vipin.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

PFB answers inlined .

a) Is it possible to count the number of messages that gets collected by the message manager at the run time.

message manger always holds and siaplys only 1 message at runtime.

b) Is it possible to stop the further collection of messages using message manager post a certain limit or count.

u can use maxVisibile messages propery fo message Area UI.

c) Can we have a scrollbar to the message area.

I don't think its possibble .

Regards,

Govindu

vipin_v2
Participant
0 Kudos

Hi Govindu,

Thanks for your quick reply.

I opened the thread due to the reason that i was getting the below exception

com.sap.tc.webdynpro.progmodel.controller.MessageManagerOverflowException: The MessageManager contains already 1,000 messages. Assuming loop. The first messages: ........

Now the requirement from the user is to stop further collection of error messages the moment 100 messages are collected.

Any (pointers/ answers) on how i can restrict this exception and limit the collection to 100 will be highly appreciated.

Thanks in Advance,

Vipin.

junwu
Active Contributor
0 Kudos

you can put the message string you want to print in the context.

find a right hook method to print the message, before print the message, you can count them.

vipin_v2
Participant
0 Kudos

Hi John,

First of all, thanks for giving a reply.

Having gone through the input been provided, i feel the messages are needed to be collected in a context variable type string and play with it but before we try that, is it that we can not handle the same requirement using message manager it self as that would be very good.

Just out of curiosity, doesn' t message manager provide these features of checking the count of messages it holds and aborting the collection post certain limit.

Any (answers/ pointers) wil be highly appreciated.

Thanks in Advance,

Vipin.