Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

User two different MessageArea

Hi everybody,

how can i use two different MessageArea. Until now all my error messages from the MessageManager

appear in the first MessageArea. I need two MessageArea because i have different positions

for my error messages.

	IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();	
	messageMgr.reportContextAttributeMessage(	 
		wdContext.nodeVD().currentVDElement(),
		wdContext.nodeVD().getNodeInfo().getAttribute( wdContext.currentVDElement().TARGET_PATH ),
		IMessageVD.IS_FILE_ERROR,
		new Object[] { wdContext.currentVDElement().TARGET_PATH },
		true		
	);		   

regards,

Seed

Edited by: seed_mopo on Sep 25, 2008 1:04 PM

Former Member
Former Member replied

Hi ,

Try the following approach and see if it works.

create two context value attribute of type boolean and bind the enable property of both the message area to both the context.

in the wdDoInit method set one message area enable property as true,for other keep it false.

Now depending on the error message nature enble the respective Message Area and disable the other one.Before reporting the exception.

make sure that both message areas should not be enable at the same time.

Siddharth

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question