cancel
Showing results for 
Search instead for 
Did you mean: 

reporting one message-text for several errors

Former Member
0 Kudos

hy,

I have a table binded to context. The table hase several rows and columns. The user can edit the values in table-cells. Now I want to make a plausibility-check for all values in the table. And if there are for example 5 errors I want to mark the error-cells red. Therefore I wrote

msgMgr.reportContextAttributeMessage(

element,

attrinfo,

IMessageZABComp.TEST,

new Object[] ,

false

);

for every error-field. My problem is that there are 5 error-messages shown in the message-area, but I want to show only one error-message "please correct your input !". How can I do this ? How can I put out only one message in the message-area, though there are several errors ?

Florian

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Forian,

You may do only on of both:

1. As is, highlight every cell, but have N messages in message area

2. Highlight no cells, and have one message -- via IWDMessageManager.reportException(...)

Nothing in between

VS

Former Member
0 Kudos

hi florian ,

can you elaborate on the situation. if you define any message inside the message pool and display it using

Msgmngr.reportcontextattributeMessage(elemnt,attributeinfo,IMessage<compname>.test,new Object [] ,false) , it'll only display the error message with id 'test' only once. just check if you are writing this code inside a loop.

regards,

rahul.