Skip to Content
avatar image
Former Member

IWDDropDownByKey and reportContextAttributeMessage()

Hello all,

We are checking mandatory fields in our WebDynpro application. When a mandatory IWDInputField has no input we use;


to display a message to the user. This works fine.

However, when the mandatory field is an IWDDropDownByKey we do not get the error message displayed to the user.

We are using SP13. Is this a known problem? How can we solve this?

Thanks for your time,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 08, 2005 at 09:03 AM

    Hi Patrick,

    We use here IWDDropDownByKey and reportContextAttributeMessage() without any problems.

    But we use SP11.

    Please see the following code - it might help you.


    messageMgr = wdControllerAPI.getComponent().getMessageManager();	
    String value = wdContext.nodeFacultyKeyNode().currentFacultyKeyNodeElement().getField();
     IWDAttributeInfo attributeInfo = wdContext.nodeFacultyKeyNode().getNodeInfo().getAttribute("field");   
    if (value.trim().equals("")){	 			
    new Object[] { fieldText },



    Message was edited by: Armin Reichert (added code tag)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      I see that that's pretty much the same code as we were using already.

      The message still doesn't appear alongside the IWDDropDownByKey UI Element. The exact same code shows the error message for all of our InputFields in the view but simply doesn't display the message for the DropDown. Perhaps it's related to SP13...... it's strange indeed.

      We're upgrading to SP14 here tomorrow anyhoos, so I'll check it again next week when I'm here.